JaapBraam / LoRaWanGateway

A LoRaWan Gateway in LUA
MIT License
225 stars 74 forks source link

PANIC: unprotected error in call #4

Closed jurkov closed 8 years ago

jurkov commented 8 years ago

Hello, i get the following error: PANIC: unprotected error in call to Lua API (bad argument #1 to 'mode' (number expected, got nil)) best regards, jurkov

JaapBraam commented 8 years ago

Do you have the hardware settings in init.lua? It looks like the pin assignments for DIO0 and DIO1 can't be found.

in init.lua you need to set the pins you connected the DIO0 and DIO1 lines of your SX1276 to:

-- hardware setup
GW_DIO0=1
GW_DIO1=2
JaapBraam commented 8 years ago

If this doesn't fix it, please post all logging beginning at the startup of the ESP8266.