Dragino-KPN-ThingSpeak | Arduino | 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
Dragino-KPN-ThingSpeak
No permission to create posts
July 6, 2017
6:33 am
Avatar
Tonibco6

Silver
Members
Forum Posts: 10
Member Since:
May 23, 2017
sp_UserOfflineSmall Offline

Hi all,

I am actually developing an IOT project based on LoRa module. To be specific, I am using Dragino device to send temperature-Humidity data from sensors.

The point is that I am sensing this data to KPN provider, which is a Dutch Network, and finally my goal would be transfer this data from KPN to ThingSpeak platform to monitorise them.

My question is, once I have got KPN ABP Keys as well as I have been testing that I am able to upload data to KPN, then Which API links should I use to match KPN Network with ThingSpeak platform. KPN Support did request me for a link in order  to send my data to ThingSpeak platform, but I have just sent them my public channel link and it didn't work.

I have actually got a simple Arduino client/server Sketches which manage to connect my Dragino Module with ThingSpeak platform throughout a private Network (gateway). However, my actual target is send this data from KPN Network to ThingSpeak instead.

Any help/suggestion, please?

Many thanks

July 18, 2017
4:33 am
Avatar
Tonibco6

Silver
Members
Forum Posts: 10
Member Since:
May 23, 2017
sp_UserOfflineSmall Offline

I have finally managed to get the right code to send my dht_11 data to KPN network from LoRa (Dragino) node. However, my next step consists on transmit this data to ThingSpeak platform throughout KPN network.

https://zakelijkforum.kpn.com/lora-forum-16/what-is-lora-and-lorawan-8314

So, basically the target consists in sending this data from LoRa node to KPN network, and then, forward it to ThingSpeak.
So that, I am actually adding into the sketch the chance to send this data to ThingSpeak, nevertheless, no data is showed on ThingSpeak dashboard.
The link below is pointed to my new code. I added the functions and variables I thought were the proper ones, however, I didn't manage to send it. May I get some support or correction to achieve it, please?

Sketch link: https://github.com/Tonibco/Dragino-KPN-Project/blob/master/Dragino_KPN.ino

Many thanks

Toni

July 18, 2017
9:28 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 228
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Your call to ThingSpeak.begin(); does not have a client.  See the examples in the Arduino IDE when you install the thingSpeak library.  For example the "writeMultipleVoltages.ino".  Generally the client that connects to the wifi or ethernet is passed to the ThingSpeak object.

July 18, 2017
10:18 am
Avatar
Tonibco6

Silver
Members
Forum Posts: 10
Member Since:
May 23, 2017
sp_UserOfflineSmall Offline

I am aware about it, so I deleted it, because it was providing me an error. So, I was wondering if the client parameter was coming from the client.ino. However, I am not using a client sketch to combine with the server, I meant, I am just using an entire code to send everything. 

July 20, 2017
7:51 am
Avatar
Tonibco6

Silver
Members
Forum Posts: 10
Member Since:
May 23, 2017
sp_UserOfflineSmall Offline

Once I enter 'client' on the function ThingSpeak.begin(client); I have got the following error:
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error compiling for board Arduino Uno - Dragino Yún.

I am using Dragino board . I have even got same error adding Arduino Uno/Genuino Uno Board. So, I don't know what's my mistake.

Here you are my entire code:

https://github.com/Tonibco/Dragino-KPN-Project/blob/master/Dragino_KPN.ino

Many thanks

July 20, 2017
4:20 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 228
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Perhaps you can try removing some libraries.  You could temporarily remove the dht library and just send dummy data to thingspeak to prove the concept.  Then you could focus on reducing the size once that is working.

Another thing I saw in one of the thingSpeak library examples for use with Yun was 

Bridge.begin();  

before the ThingSpeak.begin(client).  and I see that the yun client is depreciated.

July 24, 2017
9:30 am
Avatar
Tonibco6

Silver
Members
Forum Posts: 10
Member Since:
May 23, 2017
sp_UserOfflineSmall Offline

Is ThingSpeak reading either 'int' or 'float' values? I have just contacted KPN and I provided them my Write Key link in order to send my sensor value data to my channel, but it seems that there is something wrong once they provide the data to ThingSpeak.

I am sending format values as 25.00

Would that value be Ok in order to show it on my channel graphic? 

Thanks

July 24, 2017
2:56 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 228
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

ThingSpeak can handle both int and float, and even strings (but it wont plot the strings).  For example, the following two posts (copied from my api keys tab on my channel) both worked to display data on my channel plot.  See the update a channel feed page for more options.

https://api.thingspeak.com/update?api_key=XXXXXXXXXXXXXXXX&field1=25

https://api.thingspeak.com/update?api_key=XXXXXXXXXXXXXXXX&field1=25.0

July 25, 2017
4:57 am
Avatar
Tonibco6

Silver
Members
Forum Posts: 10
Member Since:
May 23, 2017
sp_UserOfflineSmall Offline
It seems that I managed to send "something" to ThingSpeak dashboard throughout KPN network (not Gateway). However, it is only sending a '0' value... I removed the ThingSpeak(client) function as I am not using any client scketch. I have got a warning even when I comment dht library and sending just a static number: "Low memory available, stability problems may occur." 
Code: link

 
Any code modification suggested?
(The code above is working properly when I send sensor data to KPN, I have just added some lines in order to transfer this data to ThingSpeak, which are the ones I would like to get some advise)
 
You can also see on the following link the steady temperature value '0' I have got into  my ThingSpeak channel: link

Many thanks

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
20 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:

BarryMaync, ThomasRougs, DonaldGen, prince, JrGordon, Elamsweems

Administrators: Hans: 387, lee: 457