Page 1 of 1

Dummy device and Thingspeak

Posted: 14 Oct 2017, 13:47
by rayE
Hi All,
A question about the functionality of a dummy device used with the Thingspeak protocol, the dummy device has place for 4 values, each individual value can be assigned using the following code that i send in through the serial port.

Code: Select all

  TaskValueSet 1,1,100
  TaskValueSet 1,2,200
  TaskValueSet 1,3,300
  TaskValueSet 1,4,300
  
My question is does the IDX number assigned to the device increment for each variable element in the dummy device?

This is a quote from Esy Protocols - thingspeak on WiKi, this is relavent to a real device on an I/O port..........................
If you have two readings for a given sensor, Temp will go the chart that matches the DHT IDX/Variable and Humidity will go to the IDX+1 chart. For instance, if you have DHT11 set as IDX 5. In ThingSpeak, Temperature is displayed on chart 5 and Humidity on chart 6.
Regards
Ray

Re: Dummy device and Thingspeak

Posted: 15 Oct 2017, 04:25
by rayE
Dummy quad.png
Dummy quad.png (22.38 KiB) Viewed 3183 times
OK figured it out with some tests. I did the following.

1. Flashed V2.0.0 firmware.
2. Set the controller to be Thingspeak.
3. Set a dummy device with a simulated quad_type_sensor, as in the attached screen grab.

This now allows me to send parameters through the serial input on the ESP using my own custom sensor (PIC based). I can send 4 parameters to the dummy device and update all 4 parameters in thingspeak in one go. This is MUCH more efficient than updating 1 field at a time as i was previously doing. To add another 4 fields then create a second quad dummy device (thing speak has an 8 field per channel limit).

This is what i send from the pic end to update 4 thingspeak fields.

Code: Select all

    HRSOut "TaskValueSet 1,1,", Dec TxTotalFlow,13,10                 ;Thingspeak field 1
    HRSOut "TaskValueSet 1,2,", Dec TxFlowRate,13,10                  ;Thingspeak field 2
    HRSOut "TaskValueSet 1,3,", Dec fltTxBattLevel,13,10              ;Thingspeak field 3
    HRSOut "TaskValueSet 1,4,", Dec TxNoFlow,13,10                    ;Thingspeak field 4 
I hope this is of use to someone out there...........ESP Easy ROCKS, keep up the good work guy's :-)

Ray
Dummy quad.png
Dummy quad.png (22.38 KiB) Viewed 3183 times

Re: Dummy device and Thingspeak

Posted: 15 Oct 2017, 04:31
by rayE
Device settings for my thing speak 8 fields, 4 fields per dummy device.


Devices.png
Devices.png (30.7 KiB) Viewed 3181 times