RTK Surveryor Firmware not compiling

Hi there,

We recently purchased the RTK Surveyor for testing reasons. We were trying to compile the Arduino firmware but it returns some errors. Please could you give us some suggestions in order to finally compile the Arduino firmware? It seems like some macros are not defined, they are not found in the whole project, is it something we need to add?

Error Message:


WARNING: library JC_Button claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp: In function ‘void esp_spp_cb(esp_spp_cb_event_t, esp_spp_cb_param_t*)’:

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:268:34: error: ‘ESP_BT_CONNECTABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:268:54: error: ‘ESP_BT_GENERAL_DISCOVERABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp: In member function ‘bool BluetoothSerial::connect(String)’:

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:861:34: error: ‘ESP_BT_CONNECTABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:861:54: error: ‘ESP_BT_GENERAL_DISCOVERABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp: In member function ‘bool BluetoothSerial::connect()’:

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:905:34: error: ‘ESP_BT_CONNECTABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:905:54: error: ‘ESP_BT_GENERAL_DISCOVERABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp: In member function ‘BTScanResults* BluetoothSerial::discover(int)’:

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:971:30: error: ‘ESP_BT_CONNECTABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:971:50: error: ‘ESP_BT_GENERAL_DISCOVERABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp: In member function ‘bool BluetoothSerial::discoverAsync(BTAdvertisedDeviceCb, int)’:

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:996:30: error: ‘ESP_BT_CONNECTABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

C:\Users\LENOVO\Documents\Arduino\Projects\RTK_Surveyor\src\BluetoothSerial\BluetoothSerial.cpp:996:50: error: ‘ESP_BT_GENERAL_DISCOVERABLE’ was not declared in this scope

esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);

^

exit status 1

Error compiling for board ESP32 Dev Module.


Thanks in advance for your help.

The hookup guide https://learn.sparkfun.com/tutorials/sp … tomization mentions that “esp32 dev module” need to be the selected board for configuring the arduino side of things…is it selected?

Yes, of course. The versions mentioned in the README file are selected too.

was not declared in this scope

That generally means you haven't installed one or more libraries required by the code you're trying to compile.