|
Re: Heap Issue when using EclipseMitaApplication with XDK [message #1810596 is a reply to message #1810135] |
Wed, 14 August 2019 02:37  |
Eclipse User |
|
|
|
All sensors besides the power status (battery), acoustics and connectivity (according to the Vorto Information Model) are now integrated.
However when adding one of the one mentioned above e.g. like this:
every 15 minutes {
let ps = XDK110.powerStatus.read();
where(ps) {
is(PowerStatus.Battery -> level) {
let batteryPayload = `{
"topic": ".../.../things/twin/commands/modify",
"headers": { "response-required": "false" },
"path": "/features/battery/properties",
"value": {
"status": {
"remainingCapacity":{
"value":${level}
},
"value":{
"currentMeasured": ${level},
"minMeasured":2,6,
"maxMeasured":3,2
},
"configuration": {
"remainingCapacityAmpHour":2
}
}
}
}`;
backend.telemetry.write(batteryPayload);
}
}
}
I instantly get a HEAP ISSUE after flashing...
Any ideas how I could avoid that?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03608 seconds