Log shows some errors.

Re: [balenaForums] [balenaCloud] Log shows some errors.
Hello Carlo,

Many thanx for your help.

Yes, it was the issue regarding same ClientID as I copied most of 2nd script

contain from the 1st script.

Actually both issues were connected!

It would be good if somewhere at your manual example you may point it as a friendly advice.

I gave it a go for over 3 hours now and it works.

Well done.

May I asked once the topic closes - will the all data gets deleted?

I’m going to look AWS SDK for .Net now.

Alex

cmfcruz balena team
May 21Hi Alex,
I haven’t seen your scripts as it was not attached to the forums but it seems to me that your problem is related to this Stackoverflow thread I found where a user was having problems publishing using the AWS IoT SDK MQTT client to an existing topic using a different client. Please click the link below to follow the discussion thread there:
stackoverflow.com
Python AWS iot SDK subscription**
python-3.x, aws-sdk**

asked by Pruthvi Raj on 02:42PM - 11 Nov 18 UTC

I hope this helps you with your problem in publishing from your PC.

All the best,

Carlo

Hi, I am not sure about your last question - “will the all data gets deleted”. Can you please explain more?
Thanks,
Zahari

Re: [balenaForums] [balenaCloud] Log shows some errors.
Hello Zahari,

thank you for your reply.

Sure, I need to understand how long the data

The only options as I see could be:

  • stays forever at AWS,

  • not stored at AWS all using such demo mode,

  • stored until topic is published,

  • some other option.

May I somehow get access and read old values say from yesterday or week ago

been published under certain topic ?

If not, what I do need to do to be able to save every transaction an IoT device sent

to AWS ?

Will it be sort of AWS MYSQL with possibility to query any day and time to get a stored

transaction.

Alex

majorz balena team

May 21Hi, I am not sure about your last question - “will the all data gets deleted”. Can you please explain more?

Thanks,

Zahari

Hey Alex,

I would advise to look into the documentation of AWS IoT regarding the data retention policy of their MQTT broker. A good starting poing would be this page. Hope you sort everything out!

Hello,

I do apologies for some delay.
I want to thank you all, and your support team for patience with me.
I managed all working with your help!

I do use Raspberry PI with AWS SDK running python scrip.
It reads data from Raspberry serial port and sends that to AWS IoT Cloud.

I also explored and wrote software at PC under Win10, which acts as a client
and is able to read data previously posted by RPI via AWS IoT. Fantastic!
World has no limits now.
The distance no matter (the size still does… :wink: )

I do need some your help and advices regarding AWS IoT Analytic now.

I need to ask you 2 things:

  1. If the network/internet connection between Raspberry PI and AWS IoT Cloud
    drops off I do need to understand how and how long I may keep data coming to Raspberry PI
    via serial port in and how later to resend that. Any link will be helpful.
    Could it be all automatic controlled by AWS SDK or I need to write my own
    additional code in python script ?

  2. The data from Raspberry PI normally may come once per several minutes.
    Every packet data is important to save.
    What I need to do is to store every packet, as it is a human print operation,
    firmly somewhere at AWS IoT Cloud.

I also need to retry that information back later, more likely at PC, Windows 10 based.

What are the options for my N1 and N2, please ?

Do you have any working examples for that?

Thank you very much in advance.

Alex

Thursday, May 21, 2020, 8:11:37 PM, you wrote:


|
|

  • | - |


| odyslam balena team
May 21 |

  • | - |

Hey Alex,
I would advise to look into the documentation of AWS IoT regarding the data retention policy of their MQTT broker. A good starting poing would be this page. Hope you sort everything out!