LUUP event and debug issue

I added my first LUUP code to a Thermostat event - meant to stop the event if the current heat setpoint is > 72F…

[code]local maxTempF = 72
local maxTempC = (5/9)*(maxTempF -32)

local lul_temp=luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“CurrentSetpoint”,3)

if( tonumber(lul_temp)>maxTempC ) then
return false
end

return true
[/code]

I “tested” it in the LUUP Plugins page - no (syntax) errors.

However, the event never fired and I am sure that it should have if my intended logic in the code was written correctly.

I then tried to figure out how to debug it and put a lu_log() statement into the code in the LUUP plugins test page to display some numbers. Got a popup saying “Received Empty Response” and in the log file I saw the command to execute the code (the function was displayed there) but never saw any output from the lu_log command (no code 50 or anything that I’d expect).

I replaced all the code in the LUUP plugins test page with:

lu_log("Test Hello")

Got the same popup error, the code shown in the log to be executed but still no log output - this is what I see in the log file - looks like an issue with the Job Handler:

08      08/15/09 11:52:20.485   JobHandler_LuaUPnP::HandleActionRequest argument Code=lu_log("Test Hello") <0x2c0c>
03      08/15/09 11:52:21.721   LuaUPNP: starting bLogUPnP 0 <0x400>
02      08/15/09 11:52:21.727   ^[[33;1mJobHandler_LuaUPnP::Run: pid 20197 didn't exit^[[0m <0x400>

Debug is not working, do I need to enable something?
Neil
(I am using firmware version 1.0.862)

for the logging component of what you’re doing, the syntax in 1.0.862 is:

[tt] luup.log(“Test Hello”)[/tt]

Thank you! I can debug now.