Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msgreturn always returns "No MSG Branch Defined" #26

Closed
RobertoNagy opened this issue Aug 4, 2016 · 4 comments
Closed

msgreturn always returns "No MSG Branch Defined" #26

RobertoNagy opened this issue Aug 4, 2016 · 4 comments

Comments

@RobertoNagy
Copy link

Running the MSG URL explains the msgreturn always returns "No MSG Branch Defined"

@mmiscool
Copy link
Member

mmiscool commented Aug 5, 2016

This should be corrected in current version. If it is not reply to this with a small example program so I can test and get rid of the bug.

@RobertoNagy
Copy link
Author

RobertoNagy commented Aug 6, 2016

Using this example:

msgbranch [mybranch]
print "set the branch"
wait

[mybranch]
myColorVar = msgget("color")
print myColorVar
let myReturnMsg = "You Entered " & myColorVar
msgreturn myReturnMsg
wait

and using: wget http://192.168.4.1/msg?color=blue -q -O -
or in a web browser: http://192.168.4.1/msg?color=blue
the response is: No MSG Branch Defined
"blue" pops up at http://192.168.4.1/input? address.

@mmiscool
Copy link
Member

mmiscool commented Aug 11, 2016

Fixed in latest web sockets branch. New build tonight

@gdelconti
Copy link

Hello , this bug is still present under ESP Basic 3.0.Alpha 69.
Simply add one "delay x" statement to the above example, like this:

msgbranch [mybranch]
print "set the branch"
wait

[mybranch]
myColorVar = msgget("color")
print myColorVar
delay 10 ' JUST ADD THIS LINE
let myReturnMsg = "You Entered " & myColorVar
msgreturn myReturnMsg
wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants