-->
Page 1 of 1

msgbranch

PostPosted: Mon Oct 24, 2016 4:35 pm
by rolito
When i call msgbranch, I always get an error: No MSG Branch Defined
I tested this with ESPBasic 2.0 and 3.0
Is this a Bug or am I doing something wrong?
The code is:
msgbranch [checkmsg]
wait

[checkmsg]
wert=msgget("color")
print wert
wait

Thanks in advance
rolito

Re: msgbranch

PostPosted: Mon Oct 24, 2016 9:26 pm
by Mmiscool
Use the msgreturn before the wait command to return a msg. Otherwise the respons is going to be what you described.
https://docs.google.com/document/d/1EiY ... ypyzhzez9f

Also take a look at the msg branch examples
https://www.esp8266basic.com/msg-url-usage.html

https://www.esp8266basic.com/msg-url-advanced.html

Re: msgbranch

PostPosted: Wed Oct 26, 2016 8:50 am
by rolito
You are right, now it wotks fine. Thank you very much!
rolito