heythisisnate / nodemcu-smartthings

Connect wired contact sensors and/or motion sensors to SmartThings using a NodeMCU ESP8266
MIT License
64 stars 33 forks source link

Please help: PANIC: unprotected error in call to Lua API (application.lua:1: unexpected symbol near ''ï'') #10

Open MrAgentManOk opened 7 years ago

MrAgentManOk commented 7 years ago

Please forgive me if this is an easy issue that I am just to much newb to know about it or figure it out. I have googled the "unexpected symbol" error and found it suggested that it could be an issue with hidden characters due to encoding. I copied your raw application.lua file and pasted it into visual basic and saved it encoded with UTF-8 without signature as application.lua. Sadly, this made no difference... About the 3rd time formatting and re-loading the .lua files it I got a the same error but with a "?" instead of the 'ï'. Please help. I'd really like to get this working.
Please see error in action below.

NodeMCU custom build by frightanic.com branch: 1.5.4.1-final commit: 1885a30bd99aec3384** SSL: true modules: cjson,file,gpio,http,net,node,tmr,uart,wifi,tls build built on: 2017-03-23 20:41 powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32) Connecting to WiFi access point...

Waiting for IP address... Waiting for IP address... Waiting for IP address... WiFi connection established, IP address: 192.168.1.23 You have 3 seconds to abort Waiting... Running application... PANIC: unprotected error in call to Lua API (application.lua:1: unexpected symbol near '?')

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 24580, room 16 tail 4 chksum 0xaf load 0x3ffe8000, len 2260, room 4 tail 0 chksum 0xce load 0x3ffe88d4, len 136, room 8 tail 0 chksum 0x52 csum 0x52 Œãäƒoì›rƒûg|ì dldl`Œâs’l„lÄþ

Application.txt

heythisisnate commented 7 years ago

I have not seen this problem before, sorry. Why do you need to copy/paste the file? Why not just upload the files directly?