RA* Cloud - mqtt publish commands

Community contributed apps

Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil
PostPosted: Thu Feb 01, 2018 5:41 pm
Tks Roberto it worked!!

Another quick one:

"mb:100:1" --> sets memory location 100 to 1
"mr" --> gets memory location from 200 to 379 (internal memory used by default functions)

How do I get memory location values from 100 to 199? I used to use the old "/mr100,199", but sending any form of "mr" does not work ("mr100:199", "mr:100:199" and so on).

Also tried to get individual memory locations sending "mb100" (not worked) or simply "mb:100" (did not get, but set mb 100 to 0 instead)

You had the trouble to split the "mr" response into MR00, MR01... up to MR21 kind of format.. so may not be simple to code the a "mr:100:199". If is that the case, would do any harm using locations from 200 to 379 just the way I want, regardeless the default functions? I do not use any any of them.

Rafa
Image

Posts: 12272
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Feb 01, 2018 10:54 pm
You are right.
There is no way to read individual locations outside the range.
If you are not using them, you can save and read using MR.
If you are using internal memory settings, you will have to make sure to not reuse the ones you are already using.
Roberto.

Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil
PostPosted: Fri Feb 02, 2018 2:56 am
Not using internal memory settings.

I am going to migrate from 100-199 to 200-299, and test it

Ps.: "c0:1" command stopped working again. Uapp got back using "cvar0,1". Maybe a rollback version?

Tks!
Image
Previous

Return to Apps

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron