MicroBlocksThingServer - Variable Exchange

Issue #64 resolved
Turgut Guneysu created an issue

Hi John,

I have been trying to get / set variables with the Thing Server with no luck.

Trying to follow the syntax in code:

/getVar/<URL_encoded var name>

/setVar/<URL_encoded var name>/<value>

As such my Browser address line is: http://192.168.1.40:6473/getVar/temperature

And the reply: {"error":Unrecognized command}

I can do: http://192.168.1.40:6473/properties/temperature and receive: {"temperature":16}; but then I have no idea on how I would SET it from the browser.

The code block in use is:

Any help appreciated.

Comments (2)

  1. Log in to comment