Current News

Moderator: Mmiscool

User avatar
By magneton
#38446
Mmiscool wrote:You need to wait 15 seconds between each write. so having both writes right next to each other could be problematic.


I don't know what I am doing wrong. Set Pin does not transmit to thingspeak. Set servo works (sends data to thingspeak)
code below. I would appreciate anyone that can help me.
cls
let pinNo = 5
let pinStat = 1
let API = F8UV1M4GTSEU87ST
print IP()
print API
print "Pin Number"
textbox pinNo
print "Pin Stat"
textbox pinStat
button "Set Pin" [SetThePin]
button "Set Servo" [SetThePinServo]
button "Exit " [TestExit]
wait
[SetThePin]
po pinNo pinStat
sendts(API,1,"3.14159")
delay 15000
print API
print pinStat
timer 300000 [exit]
wait
[SetThePinServo]
servo pinNo pinStat
print wget("184.106.153.149/update?key=F8UV1M4GTSEU87ST&field4=3.67")
wait
[TestExit]
end