C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'void setup()':
weatherbot:343:83: error: 'processFloraDevice' cannot be used as a function
if (processFloraDevice(floraAddress, deviceMacAddress, readBattery, tryCount)) {
^
Mehrere Bibliotheken wurden für "BLEDevice.h" gefunden
Benutzt: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\BLE
Nicht benutzt: C:\Users\XXX\Documents\Arduino\libraries\ESP32_BLE_Arduino
Mehrere Bibliotheken wurden für "WiFi.h" gefunden
Benutzt: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\WiFi
Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\WiFi
Bibliothek BLE in Version 1.0.1 im Ordner: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\BLE wird verwendet
Bibliothek WiFi in Version 1.0 im Ordner: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\WiFi wird verwendet
Bibliothek PubSubClient in Version 2.7 im Ordner: C:\Users\XXX\Documents\Arduino\libraries\PubSubClient wird verwendet
exit status 1
'BLEClient' does not name a type
Maybe someone have same issue. First build worked the other not anymore.
"C:\Users\XXX\AppData\Local\Temp\arduino_build_558469\sketch\config.h.cpp.o" weatherbot:71:1: error: 'BLEClient' does not name a type
BLEClient* getFloraClient(BLEAddress floraAddress) {
^
weatherbot:83:1: error: 'BLERemoteService' does not name a type
BLERemoteService getFloraService(BLEClient floraClient) {
^
weatherbot:102:32: error: 'BLERemoteService' was not declared in this scope
bool forceFloraServiceDataMode(BLERemoteService* floraService) {
weatherbot:102:50: error: 'floraService' was not declared in this scope
bool forceFloraServiceDataMode(BLERemoteService* floraService) {
weatherbot:127:34: error: 'BLERemoteService' was not declared in this scope
bool readFloraDataCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:127:52: error: 'floraService' was not declared in this scope
bool readFloraDataCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:127:73: error: expected primary-expression before 'baseTopic'
bool readFloraDataCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:127:82: error: expression list treated as compound expression in initializer [-fpermissive]
bool readFloraDataCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:211:37: error: 'BLERemoteService' was not declared in this scope
bool readFloraBatteryCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:211:55: error: 'floraService' was not declared in this scope
bool readFloraBatteryCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:211:76: error: expected primary-expression before 'baseTopic'
bool readFloraBatteryCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:211:85: error: expression list treated as compound expression in initializer [-fpermissive]
bool readFloraBatteryCharacteristic(BLERemoteService* floraService, String baseTopic) {
weatherbot:251:26: error: 'BLERemoteService' was not declared in this scope
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
weatherbot:251:44: error: 'floraService' was not declared in this scope
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
weatherbot:251:58: error: expected primary-expression before 'char'
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
weatherbot:251:82: error: expected primary-expression before 'bool'
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
weatherbot:251:98: error: expression list treated as compound expression in initializer [-fpermissive]
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
weatherbot:268:25: error: 'BLEAddress' was not declared in this scope
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
weatherbot:268:50: error: expected primary-expression before 'char'
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
weatherbot:268:74: error: expected primary-expression before 'bool'
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
weatherbot:268:91: error: expected primary-expression before 'int'
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
weatherbot:268:103: error: expression list treated as compound expression in initializer [-fpermissive]
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
C:\Users\XXX\Desktop\Weatherbot\config.h:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
};
^
C:\Users\XXX\Desktop\Weatherbot\config.h:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'bool forceFloraServiceDataMode(BLERemoteService*)':
weatherbot:102:62: error: 'bool forceFloraServiceDataMode(BLERemoteService*)' redeclared as different kind of symbol
bool forceFloraServiceDataMode(BLERemoteService* floraService) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino:102:6: note: previous declaration 'bool forceFloraServiceDataMode'
bool forceFloraServiceDataMode(BLERemoteService* floraService) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'bool readFloraDataCharacteristic(BLERemoteService*, String)':
weatherbot:127:82: error: 'bool readFloraDataCharacteristic(BLERemoteService*, String)' redeclared as different kind of symbol
bool readFloraDataCharacteristic(BLERemoteService* floraService, String baseTopic) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino:127:6: note: previous declaration 'bool readFloraDataCharacteristic'
bool readFloraDataCharacteristic(BLERemoteService* floraService, String baseTopic) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'bool readFloraBatteryCharacteristic(BLERemoteService*, String)':
weatherbot:211:85: error: 'bool readFloraBatteryCharacteristic(BLERemoteService*, String)' redeclared as different kind of symbol
bool readFloraBatteryCharacteristic(BLERemoteService* floraService, String baseTopic) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino:211:6: note: previous declaration 'bool readFloraBatteryCharacteristic'
bool readFloraBatteryCharacteristic(BLERemoteService* floraService, String baseTopic) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'bool processFloraService(BLERemoteService, char, bool)':
weatherbot:251:98: error: 'bool processFloraService(BLERemoteService, char, bool)' redeclared as different kind of symbol
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino:251:6: note: previous declaration 'bool processFloraService'
bool processFloraService(BLERemoteService floraService, char deviceMacAddress, bool readBattery) {
weatherbot:253:46: error: 'forceFloraServiceDataMode' cannot be used as a function
if (!forceFloraServiceDataMode(floraService)) {
weatherbot:258:73: error: 'readFloraDataCharacteristic' cannot be used as a function
bool dataSuccess = readFloraDataCharacteristic(floraService, baseTopic);
weatherbot:262:76: error: 'readFloraBatteryCharacteristic' cannot be used as a function
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'bool processFloraDevice(BLEAddress, char*, bool, int)':
weatherbot:268:103: error: 'bool processFloraDevice(BLEAddress, char*, bool, int)' redeclared as different kind of symbol
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino:268:6: note: previous declaration 'bool processFloraDevice'
bool processFloraDevice(BLEAddress floraAddress, char* deviceMacAddress, bool getBattery, int tryCount) {
weatherbot:289:80: error: 'processFloraService' cannot be used as a function
bool success = processFloraService(floraService, deviceMacAddress, getBattery);
C:\Users\XXX\Desktop\Weatherbot\weatherbot.ino: In function 'void setup()':
weatherbot:343:83: error: 'processFloraDevice' cannot be used as a function
Mehrere Bibliotheken wurden für "BLEDevice.h" gefunden Benutzt: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\BLE Nicht benutzt: C:\Users\XXX\Documents\Arduino\libraries\ESP32_BLE_Arduino Mehrere Bibliotheken wurden für "WiFi.h" gefunden Benutzt: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\WiFi Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\WiFi Bibliothek BLE in Version 1.0.1 im Ordner: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\BLE wird verwendet Bibliothek WiFi in Version 1.0 im Ordner: C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3-rc1\libraries\WiFi wird verwendet Bibliothek PubSubClient in Version 2.7 im Ordner: C:\Users\XXX\Documents\Arduino\libraries\PubSubClient wird verwendet exit status 1 'BLEClient' does not name a type
Maybe someone have same issue. First build worked the other not anymore.