|
|
@@ -180,14 +180,14 @@ int32_t luatos_mqtt_callback(lua_State *L, void* ptr){
|
|
|
if (lua_isfunction(L, -1)) {
|
|
|
lua_geti(L, LUA_REGISTRYINDEX, mqtt_ctrl->mqtt_ref);
|
|
|
lua_pushstring(L, "disconnect");
|
|
|
- lua_pushnumber(L, mqtt_ctrl->error_state);
|
|
|
+ lua_pushinteger(L, mqtt_ctrl->error_state);
|
|
|
lua_call(L, 3, 0);
|
|
|
}
|
|
|
lua_getglobal(L, "sys_pub");
|
|
|
if (lua_isfunction(L, -1)) {
|
|
|
lua_pushstring(L, "MQTT_DISCONNECT");
|
|
|
lua_geti(L, LUA_REGISTRYINDEX, mqtt_ctrl->mqtt_ref);
|
|
|
- lua_pushnumber(L, mqtt_ctrl->error_state);
|
|
|
+ lua_pushinteger(L, mqtt_ctrl->error_state);
|
|
|
lua_call(L, 3, 0);
|
|
|
}
|
|
|
}
|