8 x DS na ESP (GUI) by Duch__ + THINGSPEAK

Kamil Ból
Posty: 20
Rejestracja: wt maja 05, 2020 6:55 pm
Lokalizacja: Chęciny

czw cze 25, 2020 3:27 am

hehe uparty jestem 3 noc i dalej nic :)
peet_peet
Posty: 19
Rejestracja: pn cze 22, 2020 9:33 am

sob lip 11, 2020 5:38 pm

Witam, ciesze się, że trafiłem na ten post bo takiego programu właśnie szukałem :)
Niestety przy próbie kompilacji wyskakuje błąd:
Błąd kompilacji dla płytki Generic ESP8266 Module
nie jestem aż tak biegły w Arduino IDE aby dojść do tego co jest nie tak w tym szkicu więc to takie małe "wołanie o pomoc" ;)
Biblioteki są, nic nie edytowałem, nic nie grzebałem... chcę to wgrać na ESP-01 1M


Dodatkowo pytanie do autora czy istnieje możliwość zaimplementowania w szkicu usypiania ESP-01 ? Mam moduły już przerobione na pracę z funkcją deep sleep i z blynkiem działało to znakomicie (zasilanie bateryjne). Czy SUPLA w ogóle akceptuje coś takiego jak usypianie?
Awatar użytkownika
klew
Posty: 1266
Rejestracja: czw cze 27, 2019 12:16 pm

sob lip 11, 2020 6:34 pm

peet_peet pisze:
sob lip 11, 2020 5:38 pm

Niestety przy próbie kompilacji wyskakuje błąd:
Błąd kompilacji dla płytki Generic ESP8266 Module
Wklej cały komunikat o błędzie, a najlepiej jego początek, bo tam są najważniejsze informacje
peet_peet
Posty: 19
Rejestracja: pn cze 22, 2020 9:33 am

sob lip 11, 2020 8:01 pm

Arduino:1.8.12 (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

UWAGA: biblioteka SuplaDevice działa na architekturze(/architekturach) avr i może nie być kompatybilna z obecną płytką która działa na architekturze(/architekturach) esp8266.
In file included from D:\Moje dokumenty\Arduino\libraries\SuplaDevice\SuplaDevice.h:310:0,

from D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:19:

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla_main_helper._cpp_:68:3: error: 'UNKNOWN' does not name a type

UNKNOWN ETHERNET LIBRARY

^

In file included from D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:21:0:

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:100:3: error: 'TDS_SuplaRegisterDevice_E' does not name a type

TDS_SuplaRegisterDevice_E *ds_register_device_e;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:105:3: error: 'TCS_SuplaRegisterClient_D' does not name a type

TCS_SuplaRegisterClient_D *cs_register_client_d;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:109:3: error: 'TDS_SuplaDeviceChannelExtendedValue' does not name a type

TDS_SuplaDeviceChannelExtendedValue *ds_device_channel_extendedvalue;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:114:3: error: 'TSC_SuplaChannel_C' does not name a type

TSC_SuplaChannel_C *sc_channel_c;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:117:3: error: 'TSC_SuplaChannelPack_C' does not name a type

TSC_SuplaChannelPack_C *sc_channel_pack_c;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:128:3: error: 'TSC_SuplaChannelGroupPack_B' does not name a type

TSC_SuplaChannelGroupPack_B *sc_channelgroup_pack_b;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:131:3: error: 'TSC_SuplaChannelExtendedValuePack' does not name a type

TSC_SuplaChannelExtendedValuePack *sc_channelextendedvalue_pack;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:133:3: error: 'TSC_OAuthTokenRequestResult' does not name a type

TSC_OAuthTokenRequestResult *sc_oauth_tokenrequest_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:134:3: error: 'TCS_SuperUserAuthorizationRequest' does not name a type

TCS_SuperUserAuthorizationRequest *cs_superuser_authorization_request;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:135:3: error: 'TSC_SuperUserAuthorizationResult' does not name a type

TSC_SuperUserAuthorizationResult *sc_superuser_authorization_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:136:3: error: 'TCS_DeviceCalCfgRequest' does not name a type

TCS_DeviceCalCfgRequest *cs_device_calcfg_request;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:137:3: error: 'TCS_DeviceCalCfgRequest_B' does not name a type

TCS_DeviceCalCfgRequest_B *cs_device_calcfg_request_b;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:138:3: error: 'TSC_DeviceCalCfgResult' does not name a type

TSC_DeviceCalCfgResult *sc_device_calcfg_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:139:3: error: 'TSD_DeviceCalCfgRequest' does not name a type

TSD_DeviceCalCfgRequest *sd_device_calcfg_request;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:140:3: error: 'TDS_DeviceCalCfgResult' does not name a type

TDS_DeviceCalCfgResult *ds_device_calcfg_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:141:3: error: 'TSDC_UserLocalTimeResult' does not name a type

TSDC_UserLocalTimeResult *sdc_user_localtime_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:142:3: error: 'TCSD_ChannelStateRequest' does not name a type

TCSD_ChannelStateRequest *csd_channel_state_request;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:143:3: error: 'TDSC_ChannelState' does not name a type

TDSC_ChannelState *dsc_channel_state;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:144:3: error: 'TCS_ChannelBasicCfgRequest' does not name a type

TCS_ChannelBasicCfgRequest *cs_channel_basic_cfg_request;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:145:3: error: 'TSC_ChannelBasicCfg' does not name a type

TSC_ChannelBasicCfg *sc_channel_basic_cfg;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:146:3: error: 'TCS_SetChannelFunction' does not name a type

TCS_SetChannelFunction *cs_set_channel_function;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:147:3: error: 'TSC_SetChannelFunctionResult' does not name a type

TSC_SetChannelFunctionResult *sc_set_channel_function_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:148:3: error: 'TSC_ClientsReconnectRequestResult' does not name a type

TSC_ClientsReconnectRequestResult *sc_clients_reconnect_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:149:3: error: 'TCS_SetRegistrationEnabled' does not name a type

TCS_SetRegistrationEnabled *cs_set_registration_enabled;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:150:3: error: 'TSC_SetRegistrationEnabledResult' does not name a type

TSC_SetRegistrationEnabledResult *sc_set_registration_enabled_result;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:202:18: error: 'TSDC_UserLocalTimeResult' has not been declared

void *_srpc, TSDC_UserLocalTimeResult *localtime);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:204:18: error: 'TCSD_ChannelStateRequest' has not been declared

void *_srpc, TCSD_ChannelStateRequest *request);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:206:50: error: 'TDSC_ChannelState' has not been declared

srpc_csd_async_channel_state_result(void *_srpc, TDSC_ChannelState *state);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:219:18: error: 'TDS_SuplaRegisterDevice_E' has not been declared

void *_srpc, TDS_SuplaRegisterDevice_E *registerdevice); // ver. >= 10

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:226:5: error: 'TSuplaChannelExtendedValue' has not been declared

TSuplaChannelExtendedValue *value);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:237:18: error: 'TSD_DeviceCalCfgRequest' has not been declared

void *_srpc, TSD_DeviceCalCfgRequest *request);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:239:18: error: 'TSD_DeviceCalCfgRequest_B' has not been declared

void *_srpc, TSD_DeviceCalCfgRequest_B *request_b);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:241:49: error: 'TDS_DeviceCalCfgResult' has not been declared

srpc_ds_async_device_calcfg_result(void *_srpc, TDS_DeviceCalCfgResult *result);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:332:5: error: 'TElectricityMeter_ExtendedValue' was not declared in this scope

TElectricityMeter_ExtendedValue *em_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:332:38: error: 'em_ev' was not declared in this scope

TElectricityMeter_ExtendedValue *em_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:332:45: error: 'TSuplaChannelExtendedValue' was not declared in this scope

TElectricityMeter_ExtendedValue *em_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:332:73: error: 'ev' was not declared in this scope

TElectricityMeter_ExtendedValue *em_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:332:75: error: expression list treated as compound expression in initializer [-fpermissive]

TElectricityMeter_ExtendedValue *em_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:334:5: error: 'TSuplaChannelExtendedValue' was not declared in this scope

TSuplaChannelExtendedValue *ev, TElectricityMeter_ExtendedValue *em_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:334:33: error: 'ev' was not declared in this scope

TSuplaChannelExtendedValue *ev, TElectricityMeter_ExtendedValue *em_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:334:37: error: 'TElectricityMeter_ExtendedValue' was not declared in this scope

TSuplaChannelExtendedValue *ev, TElectricityMeter_ExtendedValue *em_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:334:70: error: 'em_ev' was not declared in this scope

TSuplaChannelExtendedValue *ev, TElectricityMeter_ExtendedValue *em_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:334:75: error: expression list treated as compound expression in initializer [-fpermissive]

TSuplaChannelExtendedValue *ev, TElectricityMeter_ExtendedValue *em_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:337:5: error: 'TSuplaChannelExtendedValue' was not declared in this scope

TSuplaChannelExtendedValue *ev, TThermostat_ExtendedValue *th_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:337:33: error: 'ev' was not declared in this scope

TSuplaChannelExtendedValue *ev, TThermostat_ExtendedValue *th_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:337:37: error: 'TThermostat_ExtendedValue' was not declared in this scope

TSuplaChannelExtendedValue *ev, TThermostat_ExtendedValue *th_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:337:64: error: 'th_ev' was not declared in this scope

TSuplaChannelExtendedValue *ev, TThermostat_ExtendedValue *th_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:337:69: error: expression list treated as compound expression in initializer [-fpermissive]

TSuplaChannelExtendedValue *ev, TThermostat_ExtendedValue *th_ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:339:5: error: 'TThermostat_ExtendedValue' was not declared in this scope

TThermostat_ExtendedValue *th_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:339:32: error: 'th_ev' was not declared in this scope

TThermostat_ExtendedValue *th_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:339:39: error: 'TSuplaChannelExtendedValue' was not declared in this scope

TThermostat_ExtendedValue *th_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:339:67: error: 'ev' was not declared in this scope

TThermostat_ExtendedValue *th_ev, TSuplaChannelExtendedValue *ev);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla-common/srpc.h:339:69: error: expression list treated as compound expression in initializer [-fpermissive]

TThermostat_ExtendedValue *th_ev, TSuplaChannelExtendedValue *ev);

^

In file included from D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/element.h:23:0,

from D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:22:

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:155:20: error: 'TElectricityMeter_ExtendedValue' has not been declared

void setNewValue(TElectricityMeter_ExtendedValue &emValue) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:232:10: error: 'TDS_SuplaRegisterDevice_E' does not name a type

static TDS_SuplaRegisterDevice_E reg_dev;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:251:11: error: 'TSuplaChannelExtendedValue' does not name a type

virtual TSuplaChannelExtendedValue *getExtValue() {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In constructor 'Supla::Channel::Channel()':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:55:9: error: 'reg_dev' was not declared in this scope

if (reg_dev.channel_count < SUPLA_CHANNELMAXCOUNT) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'void Supla::Channel::setNewValue(int&)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:157:16: error: 'TElectricityMeter_Value' was not declared in this scope

if (sizeof(TElectricityMeter_Value) <= SUPLA_CHANNELVALUE_SIZE) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:158:7: error: 'TElectricityMeter_Measurement' was not declared in this scope

TElectricityMeter_Measurement *m = nullptr;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:158:38: error: 'm' was not declared in this scope

TElectricityMeter_Measurement *m = nullptr;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:159:31: error: expected ';' before 'v'

TElectricityMeter_Value v;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:160:15: error: 'v' was not declared in this scope

memset(&v, 0, sizeof(TElectricityMeter_Value));

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:162:31: error: expected initializer before 'fae_sum'

unsigned _supla_int64_t fae_sum = emValue.total_forward_active_energy[0] +

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:166:39: error: 'fae_sum' was not declared in this scope

v.total_forward_active_energy = fae_sum / 1000;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:168:19: error: request for member 'm_count' in 'emValue', which is of non-class type 'int'

if (emValue.m_count && emValue.measured_values & EM_VAR_VOLTAGE) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:168:38: error: request for member 'measured_values' in 'emValue', which is of non-class type 'int'

if (emValue.m_count && emValue.measured_values & EM_VAR_VOLTAGE) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:168:56: error: 'EM_VAR_VOLTAGE' was not declared in this scope

if (emValue.m_count && emValue.measured_values & EM_VAR_VOLTAGE) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:169:22: error: request for member 'm' in 'emValue', which is of non-class type 'int'

m = &emValue.m[emValue.m_count - 1];

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:169:32: error: request for member 'm_count' in 'emValue', which is of non-class type 'int'

m = &emValue.m[emValue.m_count - 1];

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:172:22: error: 'EM_VALUE_FLAG_PHASE1_ON' was not declared in this scope

v.flags |= EM_VALUE_FLAG_PHASE1_ON;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:176:22: error: 'EM_VALUE_FLAG_PHASE2_ON' was not declared in this scope

v.flags |= EM_VALUE_FLAG_PHASE2_ON;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:180:22: error: 'EM_VALUE_FLAG_PHASE3_ON' was not declared in this scope

v.flags |= EM_VALUE_FLAG_PHASE3_ON;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:184:14: error: 'reg_dev' was not declared in this scope

memcpy(reg_dev.channels[channelNumber].value,

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'bool Supla::Channel::setNewValue(char*)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:192:26: error: 'reg_dev' was not declared in this scope

if (memcmp(newValue, reg_dev.channels[channelNumber].value, 8) != 0) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'void Supla::Channel::setType(int)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:206:7: error: 'reg_dev' was not declared in this scope

reg_dev.channels[channelNumber].Type = type;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'void Supla::Channel::setDefault(int)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:212:7: error: 'reg_dev' was not declared in this scope

reg_dev.channels[channelNumber].Default = value;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'void Supla::Channel::setFlag(int)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:218:7: error: 'reg_dev' was not declared in this scope

reg_dev.channels[channelNumber].Flags |= flag;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'void Supla::Channel::setFuncList(int)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:224:7: error: 'reg_dev' was not declared in this scope

reg_dev.channels[channelNumber].FuncList = functions;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h: In member function 'void Supla::Channel::sendUpdate(void*)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:239:30: error: 'reg_dev' was not declared in this scope

srpc, channelNumber, reg_dev.channels[channelNumber].value);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:242:5: error: 'TSuplaChannelExtendedValue' was not declared in this scope

TSuplaChannelExtendedValue *extValue = getExtValue();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:242:33: error: 'extValue' was not declared in this scope

TSuplaChannelExtendedValue *extValue = getExtValue();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/channel.h:242:56: error: 'getExtValue' was not declared in this scope

TSuplaChannelExtendedValue *extValue = getExtValue();

^

In file included from D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:23:0:

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/network/network.h: At global scope:

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/network/network.h:121:3: error: '_supla_int64_t' does not name a type

_supla_int64_t lastSentMs;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/network/network.h:122:3: error: '_supla_int64_t' does not name a type

_supla_int64_t lastResponseMs;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\supla/network/network.h:123:3: error: '_supla_int64_t' does not name a type

_supla_int64_t lastPingTimeMs;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp: In function 'void Supla::message_received(void*, unsigned int, unsigned int, void*, unsigned char)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:75:17: error: 'class SuplaDeviceClass' has no member named 'channelSetValueByServer'

->channelSetValueByServer(rd.data.sd_channel_new_value);

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp: In constructor 'Supla::Network::Network(IPAddress*)':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:94:3: error: 'lastSentMs' was not declared in this scope

lastSentMs = 0;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:96:3: error: 'lastPingTimeMs' was not declared in this scope

lastPingTimeMs = 0;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:98:3: error: 'lastResponseMs' was not declared in this scope

lastResponseMs = 0;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp: In member function 'void Supla::Network::updateLastSent()':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:114:3: error: 'lastSentMs' was not declared in this scope

lastSentMs = millis();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp: In member function 'void Supla::Network::updateLastResponse()':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:118:3: error: 'lastResponseMs' was not declared in this scope

lastResponseMs = millis();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp: In member function 'virtual bool Supla::Network::ping()':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:126:3: error: '_supla_int64_t' was not declared in this scope

_supla_int64_t _millis = millis();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:126:18: error: expected ';' before '_millis'

_supla_int64_t _millis = millis();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:129:8: error: '_millis' was not declared in this scope

if ((_millis - lastResponseMs) / 1000 >= (serverActivityTimeoutS + 10)) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:129:18: error: 'lastResponseMs' was not declared in this scope

if ((_millis - lastResponseMs) / 1000 >= (serverActivityTimeoutS + 10)) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:131:24: error: 'lastPingTimeMs' was not declared in this scope

} else if (_millis - lastPingTimeMs >= 5000 &&

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:134:26: error: 'lastSentMs' was not declared in this scope

(_millis - lastSentMs) / 1000 >= (serverActivityTimeoutS - 5))) {

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp: In member function 'void Supla::Network::clearTimeCounters()':

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:142:3: error: '_supla_int64_t' was not declared in this scope

_supla_int64_t currentTime = millis();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:142:18: error: expected ';' before 'currentTime'

_supla_int64_t currentTime = millis();

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:143:3: error: 'lastSentMs' was not declared in this scope

lastSentMs = currentTime;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:143:16: error: 'currentTime' was not declared in this scope

lastSentMs = currentTime;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:144:3: error: 'lastResponseMs' was not declared in this scope

lastResponseMs = currentTime;

^

D:\Moje dokumenty\Arduino\libraries\SuplaDevice\network.cpp:145:3: error: 'lastPingTimeMs' was not declared in this scope

lastPingTimeMs = currentTime;

^

exit status 1
Błąd kompilacji dla płytki Generic ESP8266 Module.

Ten raport powinien zawierać więcej informacji jeśli w
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"
Awatar użytkownika
klew
Posty: 1266
Rejestracja: czw cze 27, 2019 12:16 pm

sob lip 11, 2020 8:20 pm

peet_peet pisze:
sob lip 11, 2020 5:38 pm
Zrób to co jest opisane tutaj viewtopic.php?p=52205#p52205
peet_peet
Posty: 19
Rejestracja: pn cze 22, 2020 9:33 am

sob lip 11, 2020 8:47 pm

klew pisze:
sob lip 11, 2020 8:20 pm
peet_peet pisze:
sob lip 11, 2020 5:38 pm
Zrób to co jest opisane tutaj viewtopic.php?p=52205#p52205
dzięki ...będę próbował...
Kamil Ból
Posty: 20
Rejestracja: wt maja 05, 2020 6:55 pm
Lokalizacja: Chęciny

ndz lip 12, 2020 5:13 pm

I nie rozumiem czemu nikt jeszcze się nad nami nie zlitował i nie wrzucił pliku bin na co cokolwiek sonoff esp lub wemos
jeśli ktoś już korzysta z powodzeniem z tego kodu prosił bym po raz kolejny o udostępnienie pliku. Pozdrawiam
peet_peet
Posty: 19
Rejestracja: pn cze 22, 2020 9:33 am

ndz lip 12, 2020 6:14 pm

klew pisze:
sob lip 11, 2020 8:20 pm
peet_peet pisze:
sob lip 11, 2020 5:38 pm
Zrób to co jest opisane tutaj viewtopic.php?p=52205#p52205
niestety teraz dla odmiany doczepił się do pliku network.cpp, channel.h, srpc.h, i sypie błędami z tych plików
hanuer
Posty: 69
Rejestracja: wt sty 07, 2020 1:10 am

ndz lip 12, 2020 6:17 pm

Moze masz złą biblioteke.
Awatar użytkownika
klew
Posty: 1266
Rejestracja: czw cze 27, 2019 12:16 pm

ndz lip 12, 2020 6:23 pm

Trochę dziwne. Ten poprzedni błąd to stary problem ze starej wersji biblioteki.
Te pliki channel itd to składowe nowej biblioteki.
Coś masz chyba namieszane z bibliotekami.
ODPOWIEDZ

Wróć do „Projekty użytkowników”