Skip to content

Commit

Permalink
fix token getting cleared when requesting status
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Mar 19, 2020
1 parent b8c930a commit 06bce9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lfs/server_status.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ local function process()
local ip, nm, gw = wifi.sta.getip()
local device = require("device")
local settings = require("settings")
settings.token = nil
settings.aws = nil

local body = {
hwVersion = device.hwVersion,
Expand All @@ -22,7 +20,10 @@ local function process()
actuators = require("actuators"),
dht_sensors = require("dht_sensors"),
ds18b20_sensors = require("ds18b20_sensors"),
settings = settings
settings = {
endpoint = settings.endpoint,
endpoint_type = settings.endpoint_type
}
}
return body
end
Expand Down

0 comments on commit 06bce9a

Please sign in to comment.