What will be the IP Address of my channel. ? | ThingSpeak Projects | 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
What will be the IP Address of my channel. ?
No permission to create posts
February 24, 2017
4:14 am
Avatar
arvimg

Silver
Members
Forum Posts: 5
Member Since:
February 24, 2017
sp_UserOfflineSmall Offline

I want the data from my ARM7 LPC2387 to be sent to my ThingSpeak Channel. 

Initially it was going to this server. 

#define DFLT_SERVER_IP          "118.67.249.235"

What should be the modifications? including code modifications.

February 25, 2017
2:25 pm
Avatar
Vinod

MathWorks
Members
Forum Posts: 200
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

Can your device do DNS resolution? If so I would strongly recommend you send your data to api.thingspeak.com instead of using a static IP. 

February 27, 2017
2:07 am
Avatar
arvimg

Silver
Members
Forum Posts: 5
Member Since:
February 24, 2017
sp_UserOfflineSmall Offline

Can you mention specific code lines to send data to api.tingspeak.com ?

what modifications would be required in the current scenario where it takes static IP? 

I am using Attolic True Studio for ARM development.

 

I guess this is the outline of the code required.

  • create a socket
  • lookup the IP address
  • open the socket
  • send the request
  • wait for the response
  • close the socket
February 27, 2017
6:41 am
Avatar
Vinod

MathWorks
Members
Forum Posts: 200
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

You might want to take a look at the source for the official ThingSpeak library for Arduino and base your source on it.

https://github.com/mathworks/thingspeak-arduino

Specifically, see this file:

https://github.com/mathworks/thingspeak-arduino/blob/master/src/ThingSpeak.h

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: dennis55
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457