this is a Lua quickapp problem i install it a year ago and it was working fine but went through some problems in my system because of electricity. This is the part I Have problem with:
function BroadlinkDeviceManager:discover(func)
local blDevices = {}
local network = api.get("/proxy?url=http://localhost:11112/api/settings/network")
local myIP = network.networkConfig.eth0.ipConfig.ip
-- for debugging
if dofile then
myIP = "192.168.1.59" -- Util.getIPaddress() --
end
The Quick app is for Broadlink RM4 when I setup it again to my wifi the QA always give me this error
[DEBUG] [QUICKAPP1613]: ./include/manager.lua:97: attempt to index a nil value (field 'eth0')
[ERROR] [QUICKAPP1613]: QuickApp crashed
[ERROR] [QUICKAPP1613]: Unknown error occurred: handleJsonRpc
I search it but i can't find any solution I also asked in forum but I got nothing. If there is any one can help me with this.
You must verify if
network.networkConfig.eth0is not nil before indexingnetwork.networkConfig.eth0.ipConfig.ip: