- Posts: 1
- Thank you received: 0
`Exception (0):
epc1=0x4021479d epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: sys
sp: 3ffffd80 end: 3fffffb0 offset: 01a0
stack>>>
3fffff20: 40209126 00000000 00000022 00000000
3fffff30: 4020828d 00000000 4020b519 3ffec6a0
3fffff40: 3fff0a34 40211c77 3ffea7ac 3ffea7b8
3fffff50: 3ffea7b8 0000008c 00000000 00000022
3fffff60: 00000002 0000001a 402070f3 3ffec6a0
3fffff70: 3ffea7ac 3fffdcc0 3ffe8d40 3ffe8d40
3fffff80: 00000080 3ffec6a0 3fffdab0 00000000
3fffff90: 40206a1b 3fffdab0 00000000 402035ef
3fffffa0: 3ffe8d40 40000f49 3fffdab0 40000f49
<<<stack<<<
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Connecting to AP..
`
`#include
#include "EIoTCloudRestApi.h"
// EasyIoT Cloud definitions - change EIOT_CLOUD_INSTANCE_PARAM_ID
#define EIOT_CLOUD_INSTANCE_PARAM_ID "xxxxxxxxxxxxxxxxxxxxxx"
#define INPUT_PIN 4
EIoTCloudRestApi eiotcloud;
bool oldInputState;
void setup() {
Serial.begin(115200);
eiotcloud.begin();
pinMode(INPUT_PIN, INPUT_PULLUP);
oldInputState = !digitalRead(INPUT_PIN);
// delay(5000);
}
void loop() {
int inputState = digitalRead(INPUT_PIN);;
if (inputState != oldInputState)
{
eiotcloud.sendParameter(EIOT_CLOUD_INSTANCE_PARAM_ID, (inputState == 1));
oldInputState = inputState;
delay(1000);
}
}`
Please Log in or Create an account to join the conversation.