Seeed-Studio / Wio_Tracker_1110_Examples

arduino examples for Wio_tracker board
Other
2 stars 4 forks source link

Compilation error: sensecap_ble_uplink.ino #5

Closed matsujirushi closed 1 year ago

matsujirushi commented 1 year ago
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino: In member function 'virtual void MyLbmxEventHandlers::joined(const LbmxEvent&)':
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:125:5: error: 'app_set_profile_list_by_region' was not declared in this scope
  125 |     app_set_profile_list_by_region(REGION,adr_custom_list_region);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino: In member function 'virtual void MyLbmxEventHandlers::txDone(const LbmxEvent&)':
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:186:9: error: 'app_lora_confirmed_count_increment' was not declared in this scope
  186 |         app_lora_confirmed_count_increment();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:189:23: error: 'app_lora_get_confirmed_count' was not declared in this scope
  189 |     confirmed_count = app_lora_get_confirmed_count();
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino: In member function 'virtual void MyLbmxEventHandlers::downData(const LbmxEvent&)':
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:207:13: error: 'app_lora_data_rx_size' was not declared in this scope; did you mean 'app_lora_data_tx_size'?
  207 |             app_lora_data_rx_size = event.event_data.downdata.length;
      |             ^~~~~~~~~~~~~~~~~~~~~
      |             app_lora_data_tx_size
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:208:21: error: 'app_lora_data_rx_buffer' was not declared in this scope; did you mean 'app_lora_data_tx_buffer'?
  208 |             memcpy( app_lora_data_rx_buffer, event.event_data.downdata.data, app_lora_data_rx_size );
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
      |                     app_lora_data_tx_buffer
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:209:13: error: 'app_task_packet_downlink_decode' was not declared in this scope
  209 |             app_task_packet_downlink_decode( app_lora_data_rx_buffer, app_lora_data_rx_size );
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino: In function 'void setup()':
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:244:27: error: 'TRACKER_SCAN_BLE' was not declared in this scope; did you mean 'TRACKER_SCAN_MUTEX'?
  244 |     tracker_scan_type_set(TRACKER_SCAN_BLE);
      |                           ^~~~~~~~~~~~~~~~
      |                           TRACKER_SCAN_MUTEX
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:244:5: error: 'tracker_scan_type_set' was not declared in this scope; did you mean 'tracker_scan_type'?
  244 |     tracker_scan_type_set(TRACKER_SCAN_BLE);
      |     ^~~~~~~~~~~~~~~~~~~~~
      |     tracker_scan_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino: In function 'void loop()':
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:277:41: error: 'sht4x_sensor_type' was not declared in this scope; did you mean 'sht40_sensor_type'?
  277 |             single_fact_sensor_data_get(sht4x_sensor_type);     //get temperture&humidity for SGP internal compensation
      |                                         ^~~~~~~~~~~~~~~~~
      |                                         sht40_sensor_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:277:13: error: 'single_fact_sensor_data_get' was not declared in this scope
  277 |             single_fact_sensor_data_get(sht4x_sensor_type);     //get temperture&humidity for SGP internal compensation
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:278:13: error: 'single_fact_sensor_display_results' was not declared in this scope
  278 |             single_fact_sensor_display_results(sht4x_sensor_type);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:279:41: error: 'sgp41_sensor_type' was not declared in this scope; did you mean 'sht40_sensor_type'?
  279 |             single_fact_sensor_data_get(sgp41_sensor_type);
      |                                         ^~~~~~~~~~~~~~~~~
      |                                         sht40_sensor_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:320:45: error: 'lis3dhtr_sensor_type' was not declared in this scope; did you mean 'sht40_sensor_type'?
  320 |                 single_fact_sensor_data_get(lis3dhtr_sensor_type);                      //consume  1ms     if reinitialize => 602ms
      |                                             ^~~~~~~~~~~~~~~~~~~~
      |                                             sht40_sensor_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:320:17: error: 'single_fact_sensor_data_get' was not declared in this scope
  320 |                 single_fact_sensor_data_get(lis3dhtr_sensor_type);                      //consume  1ms     if reinitialize => 602ms
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:321:45: error: 'dps310_sensor_type' was not declared in this scope; did you mean 'sht40_sensor_type'?
  321 |                 single_fact_sensor_data_get(dps310_sensor_type);                        //consume  219ms   if reinitialize => 335ms
      |                                             ^~~~~~~~~~~~~~~~~~
      |                                             sht40_sensor_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:322:45: error: 'si1151_sensor_type' was not declared in this scope; did you mean 'sht40_sensor_type'?
  322 |                 single_fact_sensor_data_get(si1151_sensor_type);                        //consume  4ms     if reinitialize => 98ms
      |                                             ^~~~~~~~~~~~~~~~~~
      |                                             sht40_sensor_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:323:17: error: 'factory_sensor_data_combined' was not declared in this scope
  323 |                 factory_sensor_data_combined();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:324:17: error: 'app_sensor_data_display_results' was not declared in this scope; did you mean 'app_gps_display_results'?
  324 |                 app_sensor_data_display_results();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 app_gps_display_results
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:326:17: error: 'app_task_factory_sensor_data_send' was not declared in this scope
  326 |                 app_task_factory_sensor_data_send();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:338:41: error: 'sound_sensor_type' was not declared in this scope; did you mean 'sht40_sensor_type'?
  338 |             single_fact_sensor_data_get(sound_sensor_type);                 //30ms
      |                                         ^~~~~~~~~~~~~~~~~
      |                                         sht40_sensor_type
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:338:13: error: 'single_fact_sensor_data_get' was not declared in this scope
  338 |             single_fact_sensor_data_get(sound_sensor_type);                 //30ms
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:339:13: error: 'single_fact_sensor_display_results' was not declared in this scope
  339 |             single_fact_sensor_display_results(sound_sensor_type);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:350:41: error: 'ultrasonic_sensor_type' was not declared in this scope
  350 |             single_fact_sensor_data_get(ultrasonic_sensor_type);      //if connected it will be 3ms,else 40ms timeout
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:350:13: error: 'single_fact_sensor_data_get' was not declared in this scope
  350 |             single_fact_sensor_data_get(ultrasonic_sensor_type);      //if connected it will be 3ms,else 40ms timeout
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:351:13: error: 'single_fact_sensor_display_results' was not declared in this scope
  351 |             single_fact_sensor_display_results(ultrasonic_sensor_type);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:352:16: error: 'ultrasonic_distance_cm' was not declared in this scope
  352 |             if(ultrasonic_distance_cm < 10)
      |                ^~~~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:354:21: error: 'relay_status_on' was not declared in this scope; did you mean 'ral_status_t'?
  354 |                 if(!relay_status_on())
      |                     ^~~~~~~~~~~~~~~
      |                     ral_status_t
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:356:21: error: 'relay_status_control' was not declared in this scope
  356 |                     relay_status_control(true);
      |                     ^~~~~~~~~~~~~~~~~~~~
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:359:21: error: 'relay_status_on' was not declared in this scope; did you mean 'ral_status_t'?
  359 |             else if(relay_status_on())
      |                     ^~~~~~~~~~~~~~~
      |                     ral_status_t
C:\Users\takashi\AppData\Local\Temp\.arduinoIDE-unsaved2023816-16320-s18og5.czjim\sensecap_ble_uplink\sensecap_ble_uplink.ino:361:17: error: 'relay_status_control' was not declared in this scope
  361 |                 relay_status_control(false);
      |                 ^~~~~~~~~~~~~~~~~~~~

Arduino BSP: https://github.com/Seeed-Studio/Adafruit_nRF52_Arduino/tree/00e43498be37aa954c68399c6c8ac88ffdab319a Wio_Tracker_1110_Examples: https://github.com/Seeed-Studio/Wio_Tracker_1110_Examples/tree/24a995b45c361d832b1f5e1af123804b125c6d50

matsujirushi commented 1 year ago

Commit for Arduino BSP: https://github.com/Seeed-Studio/Adafruit_nRF52_Arduino/commit/32309ff88b529500ccb342c11c4a4fb0e495f85e