Code: Select all
// SW->getChannel()->setDefaultFunction(SUPLA_CHANNELFNC_CONTROLLINGTHEGARAGEDOOR);
// RST->getChannel()->setDefaultFunction(SUPLA_CHANNELFNC_CONTROLLINGTHEGARAGEDOOR);
// Status->getChannel()->setDefaultFunction(SUPLA_CHANNELFNC_OPENINGSENSOR_WINDOW);
// SW->getChannel()->setInitialCaption("on off");
// SRST->getChannel()->setInitialCaption("rest");
// Status->getChannel()->setInitialCaption("status");[code]oczywiście nad funkcjami mam:
Code: Select all
auto SW = new Supla::Control::Relay(SW_PIN);
auto RST = new Supla::Control::Relay(RST_PIN);
auto Status = new Supla::Sensor::Binary(LED_PIN, true, false);
auto suplaButtonCfg = new Supla::Control::Button(PROGRAM_BUTTON, false, true);
stack:
Code: Select all
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Stack smashing detected.
Exception (5):
epc1=0x40100127 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
>>>stack>>>
ctx: sys
sp: 3fffffa0 end: 3fffffb0 offset: 0000
3fffffa0: 3fffdad0 00000000 3fff21cc 40100127
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------Code: Select all
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Soft WDT reset
Exception (4):
epc1=0x4021e0f2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
>>>stack>>>
ctx: sys
sp: 3ffff550 end: 3fffffb0 offset: 0160