PICAXE multiple field update | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
PICAXE multiple field update
No permission to create posts
March 8, 2017
2:38 pm
Avatar
Maco33

Silver
Members
Forum Posts: 6
Member Since:
February 25, 2017
sp_UserOfflineSmall Offline

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.

March 8, 2017
6:56 pm
Avatar
rw950431

Top
Members
Forum Posts: 272
Member Since:
January 29, 2014
sp_UserOfflineSmall Offline

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)

March 9, 2017
2:15 am
Avatar
Maco33

Silver
Members
Forum Posts: 6
Member Since:
February 25, 2017
sp_UserOfflineSmall Offline

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

March 9, 2017
11:36 am
Avatar
Maco33

Silver
Members
Forum Posts: 6
Member Since:
February 25, 2017
sp_UserOfflineSmall Offline

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: SGDamiano1
31 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

petersevruk, SGDamiano1, seanoz60, Beverlytreta, MartaKah, genevievecu69

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457