Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSL2561 returns only NaN #6

Open
lab-mathias-claussen opened this issue Jul 20, 2020 · 1 comment
Open

TSL2561 returns only NaN #6

lab-mathias-claussen opened this issue Jul 20, 2020 · 1 comment

Comments

@lab-mathias-claussen
Copy link
Collaborator

The TSL2561 will only return NaN if a new value is requested.

See #5

Regards

ElekroLabs

@lab-mathias-claussen
Copy link
Collaborator Author

t seems that the Thingspeak field are not populated with values:

VEML6070 found @ 0x38
TSL2561 found @ 0x39
Starting auto detect
Configure SDS011: Query Mode
Filesize:249{"Mapping":[{"Enabled":true,"Channel":6},{"Enabled":true,"Channel":7},{"Enabled":true,"Channel":8},{"Enabled":true,"Channel":9},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0}]}
JSON:{"Mapping":[{"Enabled":true,"Channel":6},{"Enabled":true,"Channel":7},{"Enabled":true,"Channel":8},{"Enabled":true,"Channel":9},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0}]}
Read form File for Thingspeak Channel0
Mapped to Station Channel:6
Channel is Enabled
Read form File for Thingspeak Channel1
Mapped to Station Channel:7
Channel is Enabled
Read form File for Thingspeak Channel2
Mapped to Station Channel:8
Channel is Enabled
Read form File for Thingspeak Channel3
Mapped to Station Channel:9
Channel is Enabled
Read form File for Thingspeak Channel4
Mapped to Station Channel:0
Channel is Disabled
Read form File for Thingspeak Channel5
Mapped to Station Channel:0
Channel is Disabled
Read form File for Thingspeak Channel6
Mapped to Station Channel:0
Channel is Disabled
Read form File for Thingspeak Channel7
Mapped to Station Channel:0
Channel is Disabled
Initialize WiFi
Starting Reconnect
Connection Task
Station Mode Started
WiFi interface ready
.Connected to access point
Connected to :XXXXXXXX
Got IP: 192.168.168.45
Checking connected Callbacks
Execute Connected Callback
Start OTA Service
Execute Connected Callback
Execute Connected Callback
Start UPD Server Task
Filesize:249{"Mapping":[{"Enabled":true,"Channel":6},{"Enabled":true,"Channel":7},{"Enabled":true,"Channel":8},{"Enabled":true,"Channel":9},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0}]}
JSON:{"Mapping":[{"Enabled":true,"Channel":6},{"Enabled":true,"Channel":7},{"Enabled":true,"Channel":8},{"Enabled":true,"Channel":9},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0},{"Enabled":false,"Channel":0}]}
Read form File for Thingspeak Channel0
Mapped to Station Channel:6
Channel is Enabled
Read form File for Thingspeak Channel1
Mapped to Station Channel:7
Channel is Enabled
Read form File for Thingspeak Channel2
Mapped to Station Channel:8
Channel is Enabled
Read form File for Thingspeak Channel3
Mapped to Station Channel:9
Channel is Enabled
Read form File for Thingspeak Channel4
Mapped to Station Channel:0
Channel is Disabled
Read form File for Thingspeak Channel5
Mapped to Station Channel:0
Channel is Disabled
Read form File for Thingspeak Channel6
Mapped to Station Channel:0
Channel is Disabled
Read form File for Thingspeak Channel7
Mapped to Station Channel:0
Channel is Disabled
Thinkspeak UploadTask started
Thingspeak will upload in 60000 Ticks( ms )
Thingspeak: Config changed, apply settings
Thingspeak will upload in 60000 Ticks( ms )
Execute Connected Callback
Webserver started at port 80

WiFi connected!
IP address: 192.168.168.45
ESP Mac Address: 30:AE:A4:26:45:4C
Subnet Mask: 255.255.255.0
Gateway IP: 192.168.168.138
DNS: 192.168.168.138
Thingspeak: Prepare Upload ( insert code here )
Start Uploading to ThingSpeak
Current URL String:
/update?api_key=XXXXXXXXXXXXXXXXXX&field1=0.00&field2=nan&field3=nan&field4=nan
End of String

Uploading to ThingSpeak
Connecting to host 'api.thingspeak.com' on port 80
Requesting url: GET /update?api_key=XXXXXXXXXXXXXXXXXX&field1=0.00&field2=nan&field3=nan&field4=nan HTTP/1.1
Host: api.thingspeak.com
Connection: close

Response: HTTP/1.1 200 OK

Try to use HTTP@80 for Thingspeak
Thingspeak will upload in 60000 Ticks( ms )
Thingspeak: Prepare Upload ( insert code here )
Start Uploading to ThingSpeak
Current URL String:
/update?api_key=XXXXXXXXXXXXXXXXXX&field1=0.00&field2=nan&field3=nan&field4=nan
End of String

Uploading to ThingSpeak
Connecting to host 'api.thingspeak.com' on port 80
Requesting url: GET /update?api_key=XXXXXXXXXXXXXXXXXX&field1=0.00&field2=nan&field3=nan&field4=nan HTTP/1.1
Host: api.thingspeak.com
Connection: close

Response: HTTP/1.1 200 OK

Try to use HTTP@80 for Thingspeak
Thingspeak will upload in 60000 Ticks( ms )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant