Daly2Sofar icon indicating copy to clipboard operation
Daly2Sofar copied to clipboard

Impossible to compile this code

Open BOBILLEChristophe opened this issue 2 years ago • 10 comments

Hello

Impossible to compile this code:

Wemos D1 ESP32 Arduino IDE

Thanks for the answer

Christophe

I_MQTTstuff:12:16: error: variable or field 'WiFiEvent' declared void void WiFiEvent(WiFiEvent_t event) { ^ I_MQTTstuff:12:16: error: 'system_event_id_t' was not declared in this scope I_MQTTstuff:31:23: error: variable or field 'onMqttDisconnect' declared void void onMqttDisconnect(AsyncMqttClientDisconnectReason reason) { ^ I_MQTTstuff:31:23: error: 'AsyncMqttClientDisconnectReason' was not declared in this scope I_MQTTstuff:55:48: error: 'AsyncMqttClientMessageProperties' has not been declared void onMqttMessage(char* topic, char* payload, AsyncMqttClientMessageProperties properties, size_t len, size_t index, size_t total) { ^ /Users/christophe/Desktop/Daly2Sofar-main 2/Daly2Sofar_v0.92/L_GeneralFunctions.ino: In function 'void getEverythingFromDaly()': L_GeneralFunctions:11:52: error: no matching function for call to 'Daly_BMS_UART::getPackMeasurements(float&, float&, float&)' bms.getPackMeasurements(volts, amps, percentage); ^ In file included from /Users/christophe/Desktop/Daly2Sofar-main 2/Daly2Sofar_v0.92/Daly2Sofar_v0.92.ino:126:0: /Users/christophe/Documents/Arduino/libraries/daly-bms-uart-main/daly-bms-uart.h:173:10: note: candidate: bool Daly_BMS_UART::getPackMeasurements() bool getPackMeasurements(); ^ /Users/christophe/Documents/Arduino/libraries/daly-bms-uart-main/daly-bms-uart.h:173:10: note: candidate expects 0 arguments, 3 provided L_GeneralFunctions:28:25: error: no matching function for call to 'Daly_BMS_UART::getPackTemp(int8_t&)' bms.getPackTemp(temp); ^ In file included from /Users/christophe/Desktop/Daly2Sofar-main 2/Daly2Sofar_v0.92/Daly2Sofar_v0.92.ino:126:0: /Users/christophe/Documents/Arduino/libraries/daly-bms-uart-main/daly-bms-uart.h:180:10: note: candidate: bool Daly_BMS_UART::getPackTemp() bool getPackTemp(); ^ /Users/christophe/Documents/Arduino/libraries/daly-bms-uart-main/daly-bms-uart.h:180:10: note: candidate expects 0 arguments, 1 provided L_GeneralFunctions:44:90: error: no matching function for call to 'Daly_BMS_UART::getMinMaxCellVoltage(float&, uint8_t&, float&, uint8_t&)' bms.getMinMaxCellVoltage(minCellVoltage, minCellNumber, maxCellVoltage, maxCellNumber); ^ In file included from /Users/christophe/Desktop/Daly2Sofar-main 2/Daly2Sofar_v0.92/Daly2Sofar_v0.92.ino:126:0: /Users/christophe/Documents/Arduino/libraries/daly-bms-uart-main/daly-bms-uart.h:187:10: note: candidate: bool Daly_BMS_UART::getMinMaxCellVoltage() bool getMinMaxCellVoltage(); ^ /Users/christophe/Documents/Arduino/libraries/daly-bms-uart-main/daly-bms-uart.h:187:10: note: candidate expects 0 arguments, 4 provided /Users/christophe/Desktop/Daly2Sofar-main 2/Daly2Sofar_v0.92/X_Main.ino: In function 'void setup()': X_Main:42:37: error: no matching function for call to 'AsyncMqttClient::onMessage()' mqttClient.onMessage(onMqttMessage); ^ In file included from /Users/christophe/Documents/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.h:4:0, from /Users/christophe/Desktop/Daly2Sofar-main 2/Daly2Sofar_v0.92/Daly2Sofar_v0.92.ino:112: /Users/christophe/Documents/Arduino/libraries/async-mqtt-client-develop/src/AsyncMqttClient.hpp:75:20: note: candidate: AsyncMqttClient& AsyncMqttClient::onMessage(AsyncMqttClientInternals::OnMessageUserCallback) AsyncMqttClient& onMessage(AsyncMqttClientInternals::OnMessageUserCallback callback);

BOBILLEChristophe avatar Jun 24 '22 13:06 BOBILLEChristophe