-->
Page 1 of 1

msgbranch error

PostPosted: Tue Dec 27, 2016 10:42 am
by perozonp
I copied and pasted the "MSG URL Usage" example and I'm getting this error:

Error at line 1: Failed to reach end of input expression, likely malformed input
Error at line 1: Syntax error
Error at line 1: Halted


the program is exactly the example:

msgbranch [mybranch]
print "set the branch"
wait

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



I'm using a sonoff device with 1 meg. Is it possible that this command is included in the modules removed due to the shortage in memory? (see the download page for Alpha 3.0 branch)

Re: msgbranch error

PostPosted: Tue Dec 27, 2016 11:41 am
by Mmiscool
Delete the entire first line and retype it from scratch. I think you might have a bad character in there.

Re: msgbranch error

PostPosted: Tue Dec 27, 2016 11:43 am
by perozonp
Mmiscool wrote:Delete the entire first line and retype it from scratch. I think you might have a bad character in there.


You were very right, that solved the problem.

Thanks!!!