What will be the IP Address of my channel. ? | ThingSpeak Projects | 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
What will be the IP Address of my channel. ?
Avatar
arvimg

Silver
Forum Posts: 5
sp_UserOfflineSmall Offline
1
February 24, 2017 - 4:14 am
sp_Permalink sp_Print

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.

Avatar
Vinod

Forum Posts: 186
sp_UserOfflineSmall Offline
2
February 25, 2017 - 2:25 pm
sp_Permalink sp_Print

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. 

Avatar
arvimg

Silver
Forum Posts: 5
sp_UserOfflineSmall Offline
3
February 27, 2017 - 2:07 am
sp_Permalink sp_Print sp_EditHistory

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
Avatar
Vinod

Forum Posts: 186
sp_UserOfflineSmall Offline
4
February 27, 2017 - 6:41 am
sp_Permalink sp_Print

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:
19 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:

epicpaymentsny

DanielBobby

mercedeszw18

ujuxoketate

olihfez

winnieeq69

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee