Since you fixed the bug, the hasOwnProperty does not work correctly.
agents =
"0":{ "RPCfunctions":{}, "init":function () { console.log(this.agentName + " added"); }, "add":.............................. }
message =
{ "address":"0", "origin":"0", "UID":"4n22krpnok2", "content":{ "method":"add", "params":{"a":71,"b":12}, "id":"2180qsewake8" } }
agent.hasOwnProperty(message.address) == false
@Alex started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Since you fixed the bug, the hasOwnProperty does not work correctly.
agents =
message =
agent.hasOwnProperty(message.address) == false