PICAXE multiple field update | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
PICAXE multiple field update
Avatar
Maco33

Silver
Forum Posts: 6
sp_UserOfflineSmall Offline
1
March 8, 2017 - 2:38 pm
sp_Permalink sp_Print sp_EditHistory

Hi, I have an application in PICAXE and I want to send data to Thingspeak with ESP8266. When I use this code:

Thing:
pause 2000
serout Wifi, baud,("AT",13,10)
pause 2000
serout Wifi, baud,("AT+CWQAP",13,10)
pause 5000
serout Wifi, baud,("AT+RST",13,10)
pause 3000
serout Wifi, baud,("AT+CWMODE=1",13,10)
pause 1000
serout Wifi, baud,("AT+CWJAP=",34,"***********",34,",",34,"*********",34,13,10)
pause 12000
serout Wifi, baud,("AT+CIPSTART=",34,"TCP",34,",",34,"184.106.153.149",34,",80",13,10)
pause 2000
serout Wifi, baud,("AT+CIPSEND=43",13,10) ;45
pause 1000
serout Wifi, baud,("GET /update?key=XXXXXXXXXXXXXXXX&field1=",b1,13,10) 

everything is OK and I can even send any field (1-4), when I change entry field (&field1 or &field2....) in last command.

Is It possible to send data to fields in a multiple mode?

Thanks.

Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
2
March 8, 2017 - 6:56 pm
sp_Permalink sp_Print

Not sure if this is your question but you can send multiple values by adding them to the end of the URL

 

eg

GET /update?key=XXXXXXXXXXXXXXXX&field1=1&field2=3&field3=10000&field4=0

 

(Sorry I dont know the exact syntax to make it work for picaxe)

Avatar
Maco33

Silver
Forum Posts: 6
sp_UserOfflineSmall Offline
3
March 9, 2017 - 2:15 am
sp_Permalink sp_Print

I followed this: https://www.allaboutcircuits.com/projects/connect-a-picaxe-to-the-internet-of-things/

But I do not know how I do it multiple mode.Confused

Avatar
Maco33

Silver
Forum Posts: 6
sp_UserOfflineSmall Offline
4
March 9, 2017 - 11:36 am
sp_Permalink sp_Print

I know how it is correct, he told a colleague from PICAXE forum. Thank you for your contribution:

 serout Wifi, baud,("GET /update?key=XXXXXXXXXXXXXXXX&field1=",b1,"&field2=",b2,"&field3=",b3,"&field4=",b4,13,10)

M.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

donj51

trilee

Bfletche

stuartWAI

shivmkatiyar

AidanThing

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee