1
General Discussion / Re: GPS Tracker with Bluetooth
« on: August 10, 2018, 05:18:03 PM »
aci_cmds.h:408: error: 'aci_cmd_params_test_t' does not name a type
aci_cmd_params_test_t test;
^
aci_cmds.h:409: error: 'aci_cmd_params_echo_t' does not name a type
aci_cmd_params_echo_t echo;
^
aci_cmds.h:410: error: 'aci_cmd_params_dtm_cmd_t' does not name a type
aci_cmd_params_dtm_cmd_t dtm_cmd;
^
aci_cmds.h:411: error: 'aci_cmd_params_setup_t' does not name a type
aci_cmd_params_setup_t setup;
^
aci_cmds.h:412: error: 'aci_cmd_params_write_dynamic_data_t' does not name a type
aci_cmd_params_write_dynamic_data_t write_dynamic_data;
^
aci_cmds.h:413: error: 'aci_cmd_params_set_local_data_t' does not name a type
aci_cmd_params_set_local_data_t set_local_data;
^
aci_cmds.h:414: error: 'aci_cmd_params_connect_t' does not name a type
aci_cmd_params_connect_t connect;
^
aci_cmds.h:415: error: 'aci_cmd_params_bond_t' does not name a type
aci_cmd_params_bond_t bond;
^
aci_cmds.h:416: error: 'aci_cmd_params_disconnect_t' does not name a type
aci_cmd_params_disconnect_t disconnect;
^
aci_cmds.h:417: error: 'aci_cmd_params_set_tx_power_t' does not name a type
aci_cmd_params_set_tx_power_t set_tx_power;
^
aci_cmds.h:418: error: 'aci_cmd_params_change_timing_t' does not name a type
aci_cmd_params_change_timing_t change_timing;
^
aci_cmds.h:419: error: 'aci_cmd_params_open_remote_pipe_t' does not name a type
aci_cmd_params_open_remote_pipe_t open_remote_pipe;
^
aci_cmds.h:420: error: 'aci_cmd_params_send_data_t' does not name a type
aci_cmd_params_send_data_t send_data;
^
aci_cmds.h:421: error: 'aci_cmd_params_send_data_ack_t' does not name a type
aci_cmd_params_send_data_ack_t send_data_ack;
^
aci_cmds.h:422: error: 'aci_cmd_params_request_data_t' does not name a type
aci_cmd_params_request_data_t request_data;
^
aci_cmds.h:423: error: 'aci_cmd_params_send_data_nack_t' does not name a type
aci_cmd_params_send_data_nack_t send_data_nack;
^
aci_cmds.h:424: error: 'aci_cmd_params_set_app_latency_t' does not name a type
aci_cmd_params_set_app_latency_t set_app_latency;
^
aci_cmds.h:425: error: 'aci_cmd_params_set_key_t' does not name a type
aci_cmd_params_set_key_t set_key;
^
aci_cmds.h:426: error: 'aci_cmd_params_open_adv_pipe_t' does not name a type
aci_cmd_params_open_adv_pipe_t open_adv_pipe;
^
aci_cmds.h:427: error: 'aci_cmd_params_broadcast_t' does not name a type
aci_cmd_params_broadcast_t broadcast;
^
aci_cmds.h:428: error: 'aci_cmd_params_close_remote_pipe_t' does not name a type
aci_cmd_params_close_remote_pipe_t close_remote_pipe;
^
aci_cmds.h:431: error: expected initializer before 'aci_cmd_t'
} _aci_packed_ aci_cmd_t;
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
lib_aci.h:50: error: expected initializer before 'hal_aci_evt_t'
} _aci_packed_ hal_aci_evt_t;
^
lib_aci.h:52: error: expected constructor, destructor, or type conversion before '(' token
ACI_ASSERT_SIZE(hal_aci_evt_t, 34);
^
lib_aci.h:64: error: 'hal_aci_data_t' does not name a type
hal_aci_data_t *setup_msgs;
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
lib_aci.h:513: error: 'hal_aci_evt_t' has not been declared
bool lib_aci_event_get(aci_state_t *aci_stat, hal_aci_evt_t * aci_evt);
^
lib_aci.h:522: error: 'hal_aci_evt_t' was not declared in this scope
bool lib_aci_event_peek(hal_aci_evt_t *p_aci_evt_data);
^
lib_aci.h:522: error: 'p_aci_evt_data' was not declared in this scope
bool lib_aci_event_peek(hal_aci_evt_t *p_aci_evt_data);
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h: In function 'int BLEsetup()':
UART.h:69: error: 'Add_UART_Service' was not declared in this scope
ret = Add_UART_Service();
^
sketch\UART.h: In function 'void aci_loop()':
UART.h:83: error: 'ble_connection_state' was not declared in this scope
ble_connection_state = connected;
^
UART.h:85: error: 'setConnectable' was not declared in this scope
setConnectable();
^
sketch\UART.h: In function 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)':
UART.h:137: error: ambiguating new declaration of 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
uint8_t lib_aci_send_data(uint8_t ignore, uint8_t* sendBuffer, uint8_t sendLength) {
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
sketch\lib_aci.h:376:6: note: old declaration 'bool lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
bool lib_aci_send_data(uint8_t pipe, uint8_t *value, uint8_t size);
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
UART.h:138: error: 'Write_UART_TX' was not declared in this scope
return !Write_UART_TX((char*)sendBuffer, sendLength);
^
sketch\UART.h: In function 'void setConnectable()':
sketch\UART.h:183:55: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h:183:91: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h: In function 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)':
UART.h:197: error: 'ble_rx_buffer' was not declared in this scope
ble_rx_buffer = att_data;
^
UART.h:199: error: 'ble_rx_buffer' was not declared in this scope
ble_rx_buffer = '\0';
^
UART.h:200: error: 'ble_rx_buffer_len' was not declared in this scope
ble_rx_buffer_len = data_length;
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino: At global scope:
BIke_GPS_Tracker:46: error: 'rename' does not name a type
rename UART.h to UART.ino
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:19: error: redefinition of 'uint16_t connection_handle'
uint16_t connection_handle = 0;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:19:10: note: 'uint16_t connection_handle' previously defined here
uint16_t connection_handle = 0;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:26: error: redefinition of 'int connected'
int connected = FALSE;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:26:5: note: 'int connected' previously defined here
int connected = FALSE;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'int BLEsetup()':
UART.h:29: error: redefinition of 'int BLEsetup()'
int BLEsetup() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:29:5: note: 'int BLEsetup()' previously defined here
int BLEsetup() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void aci_loop()':
UART.h:81: error: redefinition of 'void aci_loop()'
void aci_loop() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:81:6: note: 'void aci_loop()' previously defined here
void aci_loop() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: At global scope:
UART.h:105: error: redefinition of 'uint16_t UARTServHandle'
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:105:10: note: 'uint16_t UARTServHandle' previously declared here
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:105: error: redefinition of 'uint16_t UARTTXCharHandle'
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:105:26: note: 'uint16_t UARTTXCharHandle' previously declared here
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:105: error: redefinition of 'uint16_t UARTRXCharHandle'
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:105:44: note: 'uint16_t UARTRXCharHandle' previously declared here
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'uint8_t Add_UART_Service()':
UART.h:108: error: redefinition of 'uint8_t Add_UART_Service()'
uint8_t Add_UART_Service(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:108:9: note: 'uint8_t Add_UART_Service()' previously defined here
uint8_t Add_UART_Service(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)':
UART.h:137: error: ambiguating new declaration of 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
uint8_t lib_aci_send_data(uint8_t ignore, uint8_t* sendBuffer, uint8_t sendLength) {
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
sketch\lib_aci.h:376:6: note: old declaration 'bool lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
bool lib_aci_send_data(uint8_t pipe, uint8_t *value, uint8_t size);
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'uint8_t Write_UART_TX(char*, uint8_t)':
UART.h:141: error: redefinition of 'uint8_t Write_UART_TX(char*, uint8_t)'
uint8_t Write_UART_TX(char* TXdata, uint8_t datasize)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:141:9: note: 'uint8_t Write_UART_TX(char*, uint8_t)' previously defined here
uint8_t Write_UART_TX(char* TXdata, uint8_t datasize)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void Read_Request_CB(uint16_t)':
UART.h:156: error: redefinition of 'void Read_Request_CB(uint16_t)'
void Read_Request_CB(uint16_t handle)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:156:6: note: 'void Read_Request_CB(uint16_t)' previously defined here
void Read_Request_CB(uint16_t handle)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void setConnectable()':
UART.h:173: error: redefinition of 'void setConnectable()'
void setConnectable(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:173:6: note: 'void setConnectable()' previously defined here
void setConnectable(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h:183:55: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h:183:91: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h: In function 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)':
UART.h:192: error: redefinition of 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)'
void Attribute_Modified_CB(uint16_t handle, uint8_t data_length, uint8_t *att_data)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:192:6: note: 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)' previously defined here
void Attribute_Modified_CB(uint16_t handle, uint8_t data_length, uint8_t *att_data)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void GAP_ConnectionComplete_CB(uint8_t*, uint16_t)':
UART.h:204: error: redefinition of 'void GAP_ConnectionComplete_CB(uint8_t*, uint16_t)'
void GAP_ConnectionComplete_CB(uint8_t addr[6], uint16_t handle) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:204:6: note: 'void GAP_ConnectionComplete_CB(uint8_t*, uint16_t)' previously defined here
void GAP_ConnectionComplete_CB(uint8_t addr[6], uint16_t handle) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void GAP_DisconnectionComplete_CB()':
UART.h:216: error: redefinition of 'void GAP_DisconnectionComplete_CB()'
void GAP_DisconnectionComplete_CB(void) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:216:6: note: 'void GAP_DisconnectionComplete_CB()' previously defined here
void GAP_DisconnectionComplete_CB(void) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void HCI_Event_CB(void*)':
UART.h:225: error: redefinition of 'void HCI_Event_CB(void*)'
void HCI_Event_CB(void *pckt)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:225:6: note: 'void HCI_Event_CB(void*)' previously defined here
void HCI_Event_CB(void *pckt)
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino: In function 'void loop()':
BIke_GPS_Tracker:73: error: expected ')' before 'read'
gps.encode(Gps_serial read.read());
^
BIke_GPS_Tracker:73: error: no matching function for call to 'TinyGPSPlus::encode(SoftwareSerial&)'
gps.encode(Gps_serial read.read());
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:73:36: note: candidate is:
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:1:0:
C:\Users\Rosana\Documents\Arduino\libraries\TinyGPSPlus-master\src/TinyGPS++.h:223:8: note: bool TinyGPSPlus::encode(char)
bool encode(char c); // process one character received from GPS
^
C:\Users\Rosana\Documents\Arduino\libraries\TinyGPSPlus-master\src/TinyGPS++.h:223:8: note: no known conversion for argument 1 from 'SoftwareSerial' to 'char'
BIke_GPS_Tracker:79: error: 'ble' was not declared in this scope
ble-rx-buffer_len=0;//clear after reading
^
BIke_GPS_Tracker:79: error: 'rx' was not declared in this scope
ble-rx-buffer_len=0;//clear after reading
^
BIke_GPS_Tracker:79: error: 'buffer_len' was not declared in this scope
ble-rx-buffer_len=0;//clear after reading
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino: At global scope:
BIke_GPS_Tracker:89: error: expected unqualified-id before 'if'
if (SerialMonitorInterface.available()) {Check if serial input is available to send
^
exit status 1
expected initializer before 'hal_aci_data_t'
aci_cmd_params_test_t test;
^
aci_cmds.h:409: error: 'aci_cmd_params_echo_t' does not name a type
aci_cmd_params_echo_t echo;
^
aci_cmds.h:410: error: 'aci_cmd_params_dtm_cmd_t' does not name a type
aci_cmd_params_dtm_cmd_t dtm_cmd;
^
aci_cmds.h:411: error: 'aci_cmd_params_setup_t' does not name a type
aci_cmd_params_setup_t setup;
^
aci_cmds.h:412: error: 'aci_cmd_params_write_dynamic_data_t' does not name a type
aci_cmd_params_write_dynamic_data_t write_dynamic_data;
^
aci_cmds.h:413: error: 'aci_cmd_params_set_local_data_t' does not name a type
aci_cmd_params_set_local_data_t set_local_data;
^
aci_cmds.h:414: error: 'aci_cmd_params_connect_t' does not name a type
aci_cmd_params_connect_t connect;
^
aci_cmds.h:415: error: 'aci_cmd_params_bond_t' does not name a type
aci_cmd_params_bond_t bond;
^
aci_cmds.h:416: error: 'aci_cmd_params_disconnect_t' does not name a type
aci_cmd_params_disconnect_t disconnect;
^
aci_cmds.h:417: error: 'aci_cmd_params_set_tx_power_t' does not name a type
aci_cmd_params_set_tx_power_t set_tx_power;
^
aci_cmds.h:418: error: 'aci_cmd_params_change_timing_t' does not name a type
aci_cmd_params_change_timing_t change_timing;
^
aci_cmds.h:419: error: 'aci_cmd_params_open_remote_pipe_t' does not name a type
aci_cmd_params_open_remote_pipe_t open_remote_pipe;
^
aci_cmds.h:420: error: 'aci_cmd_params_send_data_t' does not name a type
aci_cmd_params_send_data_t send_data;
^
aci_cmds.h:421: error: 'aci_cmd_params_send_data_ack_t' does not name a type
aci_cmd_params_send_data_ack_t send_data_ack;
^
aci_cmds.h:422: error: 'aci_cmd_params_request_data_t' does not name a type
aci_cmd_params_request_data_t request_data;
^
aci_cmds.h:423: error: 'aci_cmd_params_send_data_nack_t' does not name a type
aci_cmd_params_send_data_nack_t send_data_nack;
^
aci_cmds.h:424: error: 'aci_cmd_params_set_app_latency_t' does not name a type
aci_cmd_params_set_app_latency_t set_app_latency;
^
aci_cmds.h:425: error: 'aci_cmd_params_set_key_t' does not name a type
aci_cmd_params_set_key_t set_key;
^
aci_cmds.h:426: error: 'aci_cmd_params_open_adv_pipe_t' does not name a type
aci_cmd_params_open_adv_pipe_t open_adv_pipe;
^
aci_cmds.h:427: error: 'aci_cmd_params_broadcast_t' does not name a type
aci_cmd_params_broadcast_t broadcast;
^
aci_cmds.h:428: error: 'aci_cmd_params_close_remote_pipe_t' does not name a type
aci_cmd_params_close_remote_pipe_t close_remote_pipe;
^
aci_cmds.h:431: error: expected initializer before 'aci_cmd_t'
} _aci_packed_ aci_cmd_t;
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
lib_aci.h:50: error: expected initializer before 'hal_aci_evt_t'
} _aci_packed_ hal_aci_evt_t;
^
lib_aci.h:52: error: expected constructor, destructor, or type conversion before '(' token
ACI_ASSERT_SIZE(hal_aci_evt_t, 34);
^
lib_aci.h:64: error: 'hal_aci_data_t' does not name a type
hal_aci_data_t *setup_msgs;
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
lib_aci.h:513: error: 'hal_aci_evt_t' has not been declared
bool lib_aci_event_get(aci_state_t *aci_stat, hal_aci_evt_t * aci_evt);
^
lib_aci.h:522: error: 'hal_aci_evt_t' was not declared in this scope
bool lib_aci_event_peek(hal_aci_evt_t *p_aci_evt_data);
^
lib_aci.h:522: error: 'p_aci_evt_data' was not declared in this scope
bool lib_aci_event_peek(hal_aci_evt_t *p_aci_evt_data);
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h: In function 'int BLEsetup()':
UART.h:69: error: 'Add_UART_Service' was not declared in this scope
ret = Add_UART_Service();
^
sketch\UART.h: In function 'void aci_loop()':
UART.h:83: error: 'ble_connection_state' was not declared in this scope
ble_connection_state = connected;
^
UART.h:85: error: 'setConnectable' was not declared in this scope
setConnectable();
^
sketch\UART.h: In function 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)':
UART.h:137: error: ambiguating new declaration of 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
uint8_t lib_aci_send_data(uint8_t ignore, uint8_t* sendBuffer, uint8_t sendLength) {
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
sketch\lib_aci.h:376:6: note: old declaration 'bool lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
bool lib_aci_send_data(uint8_t pipe, uint8_t *value, uint8_t size);
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
UART.h:138: error: 'Write_UART_TX' was not declared in this scope
return !Write_UART_TX((char*)sendBuffer, sendLength);
^
sketch\UART.h: In function 'void setConnectable()':
sketch\UART.h:183:55: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h:183:91: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h: In function 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)':
UART.h:197: error: 'ble_rx_buffer' was not declared in this scope
ble_rx_buffer = att_data;
^
UART.h:199: error: 'ble_rx_buffer' was not declared in this scope
ble_rx_buffer = '\0';
^
UART.h:200: error: 'ble_rx_buffer_len' was not declared in this scope
ble_rx_buffer_len = data_length;
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino: At global scope:
BIke_GPS_Tracker:46: error: 'rename' does not name a type
rename UART.h to UART.ino
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:19: error: redefinition of 'uint16_t connection_handle'
uint16_t connection_handle = 0;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:19:10: note: 'uint16_t connection_handle' previously defined here
uint16_t connection_handle = 0;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:26: error: redefinition of 'int connected'
int connected = FALSE;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:26:5: note: 'int connected' previously defined here
int connected = FALSE;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'int BLEsetup()':
UART.h:29: error: redefinition of 'int BLEsetup()'
int BLEsetup() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:29:5: note: 'int BLEsetup()' previously defined here
int BLEsetup() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void aci_loop()':
UART.h:81: error: redefinition of 'void aci_loop()'
void aci_loop() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:81:6: note: 'void aci_loop()' previously defined here
void aci_loop() {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: At global scope:
UART.h:105: error: redefinition of 'uint16_t UARTServHandle'
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:105:10: note: 'uint16_t UARTServHandle' previously declared here
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:105: error: redefinition of 'uint16_t UARTTXCharHandle'
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:105:26: note: 'uint16_t UARTTXCharHandle' previously declared here
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
UART.h:105: error: redefinition of 'uint16_t UARTRXCharHandle'
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:105:44: note: 'uint16_t UARTRXCharHandle' previously declared here
uint16_t UARTServHandle, UARTTXCharHandle, UARTRXCharHandle;
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'uint8_t Add_UART_Service()':
UART.h:108: error: redefinition of 'uint8_t Add_UART_Service()'
uint8_t Add_UART_Service(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:108:9: note: 'uint8_t Add_UART_Service()' previously defined here
uint8_t Add_UART_Service(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)':
UART.h:137: error: ambiguating new declaration of 'uint8_t lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
uint8_t lib_aci_send_data(uint8_t ignore, uint8_t* sendBuffer, uint8_t sendLength) {
^
In file included from sketch\UART.h:3:0,
from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:
sketch\lib_aci.h:376:6: note: old declaration 'bool lib_aci_send_data(uint8_t, uint8_t*, uint8_t)'
bool lib_aci_send_data(uint8_t pipe, uint8_t *value, uint8_t size);
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'uint8_t Write_UART_TX(char*, uint8_t)':
UART.h:141: error: redefinition of 'uint8_t Write_UART_TX(char*, uint8_t)'
uint8_t Write_UART_TX(char* TXdata, uint8_t datasize)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:141:9: note: 'uint8_t Write_UART_TX(char*, uint8_t)' previously defined here
uint8_t Write_UART_TX(char* TXdata, uint8_t datasize)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void Read_Request_CB(uint16_t)':
UART.h:156: error: redefinition of 'void Read_Request_CB(uint16_t)'
void Read_Request_CB(uint16_t handle)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:156:6: note: 'void Read_Request_CB(uint16_t)' previously defined here
void Read_Request_CB(uint16_t handle)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void setConnectable()':
UART.h:173: error: redefinition of 'void setConnectable()'
void setConnectable(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:173:6: note: 'void setConnectable()' previously defined here
void setConnectable(void)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h:183:55: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h:183:91: warning: integer overflow in expression [-Woverflow]
(ADV_INTERVAL_MIN_MS * 1000) / 625, (ADV_INTERVAL_MAX_MS * 1000) / 625,
^
sketch\UART.h: In function 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)':
UART.h:192: error: redefinition of 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)'
void Attribute_Modified_CB(uint16_t handle, uint8_t data_length, uint8_t *att_data)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:192:6: note: 'void Attribute_Modified_CB(uint16_t, uint8_t, uint8_t*)' previously defined here
void Attribute_Modified_CB(uint16_t handle, uint8_t data_length, uint8_t *att_data)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void GAP_ConnectionComplete_CB(uint8_t*, uint16_t)':
UART.h:204: error: redefinition of 'void GAP_ConnectionComplete_CB(uint8_t*, uint16_t)'
void GAP_ConnectionComplete_CB(uint8_t addr[6], uint16_t handle) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:204:6: note: 'void GAP_ConnectionComplete_CB(uint8_t*, uint16_t)' previously defined here
void GAP_ConnectionComplete_CB(uint8_t addr[6], uint16_t handle) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void GAP_DisconnectionComplete_CB()':
UART.h:216: error: redefinition of 'void GAP_DisconnectionComplete_CB()'
void GAP_DisconnectionComplete_CB(void) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:216:6: note: 'void GAP_DisconnectionComplete_CB()' previously defined here
void GAP_DisconnectionComplete_CB(void) {
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:47:0:
sketch\UART.h: In function 'void HCI_Event_CB(void*)':
UART.h:225: error: redefinition of 'void HCI_Event_CB(void*)'
void HCI_Event_CB(void *pckt)
^
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:5:0:
sketch\UART.h:225:6: note: 'void HCI_Event_CB(void*)' previously defined here
void HCI_Event_CB(void *pckt)
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino: In function 'void loop()':
BIke_GPS_Tracker:73: error: expected ')' before 'read'
gps.encode(Gps_serial read.read());
^
BIke_GPS_Tracker:73: error: no matching function for call to 'TinyGPSPlus::encode(SoftwareSerial&)'
gps.encode(Gps_serial read.read());
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:73:36: note: candidate is:
In file included from C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino:1:0:
C:\Users\Rosana\Documents\Arduino\libraries\TinyGPSPlus-master\src/TinyGPS++.h:223:8: note: bool TinyGPSPlus::encode(char)
bool encode(char c); // process one character received from GPS
^
C:\Users\Rosana\Documents\Arduino\libraries\TinyGPSPlus-master\src/TinyGPS++.h:223:8: note: no known conversion for argument 1 from 'SoftwareSerial' to 'char'
BIke_GPS_Tracker:79: error: 'ble' was not declared in this scope
ble-rx-buffer_len=0;//clear after reading
^
BIke_GPS_Tracker:79: error: 'rx' was not declared in this scope
ble-rx-buffer_len=0;//clear after reading
^
BIke_GPS_Tracker:79: error: 'buffer_len' was not declared in this scope
ble-rx-buffer_len=0;//clear after reading
^
C:\Users\Rosana\Documents\Arduino\BIke_GPS_Tracker\BIke_GPS_Tracker.ino: At global scope:
BIke_GPS_Tracker:89: error: expected unqualified-id before 'if'
if (SerialMonitorInterface.available()) {Check if serial input is available to send
^
exit status 1
expected initializer before 'hal_aci_data_t'