Menu

Certificat vs Platformio

IotAppAccount
Joined
2017-01-18 17:54:24
Posts
13

Certificat vs Platformio

Hi Forum
I’m retired started with Arduino 10 years ago mostly Cut/Past long learning curve
๐Ÿ™ 

Now I’m using Platformio but with IOTAppStory I copy Main to include and rename to include.ino getting bin file from Arduino. 
I know I have seen how to embed cert in an “Andreas YT” but can’t find it. 
Can someone give me a hint where I can see or read about it I.e. How to in Platformio? 

As I’m here   
I’m using PubSubClient + EspMQTTClient and it crashes in both IDE seems that  .h is read 2 times.  
I have solved the problem by "trial and error" until success omited in .h files in ESPAsynkWebbServer. ๐Ÿ˜Š 

But, shouldn't it be not be prevented by some “pragma once”? 

Bjorn 

ChWuel
Joined
2021-01-17 09:32:53
Posts
26

Hi Bjorn,

welcome to the IAS club ! I just started five month ago and got some good help by Onno and Christiaan. Let me start to help you with some basics.

I'm usingPlatformio as well and you can handle everything here quite simple. No need to extra copy files, or use other IDE.

If you have just 'build' your main.cpp, you will find the firmware.bin, that you need to upload to your APP on IAS, under your project folder .../.pio/build/%project%/firmware.bin (maybe you have to check for hidden directories)

If you get a message like "no certificate" start the config mode and grab a new one. Should be only needed once.

OK ?

Maybe, that solves your double starting program as well.

The certificate is only needed to be included, if you are uploading files to SPIFFS e.g. for a website, which seems not needed in your case.

Hope, that helps you a step further,

Christian

IotAppAccount
Joined
2017-01-18 17:54:24
Posts
13

In response to ChWuel (View post):

Hi Bjorn, welcome to the IAS club ! I just started five month ago and got some good help by Onno an...

Thanks Christian ! If that works for you it must work for me๐Ÿ‘
I tested as you do a year ago but then it did not work, Onno told me to test with Arduino IDE and it worked fine.
Since then I have used Arduino for .bin as I thought I had to do something special

Bjorn

ChWuel
Joined
2021-01-17 09:32:53
Posts
26

In response to IotAppAccount (View post):

Thanks Christian ! If that works for you it must work for me๐Ÿ‘I tested as you do a year ago but then...

It should ๐Ÿ˜‰Please let us know your progress ... I like using PlatformIO and had some starting issues as well. I would be happy, if I can help you with my experiences.

Onno Dirkzwager
Joined
2016-06-04 21:36:48
Posts
67

In response to IotAppAccount (View post):

Thanks Christian ! If that works for you it must work for me๐Ÿ‘I tested as you do a year ago but then...

Hi Bjorn,
as I recall at the time you had multiple issues so I thought it was a good starting point to take them one by one. Apparently we never really finished.... It should be as simple as ChWuel(๐Ÿ‘) suggested.

IotAppAccount
Joined
2017-01-18 17:54:24
Posts
13

Thanks Onno
As I said "Since then I have used Arduino for .bin as I thought I had to do something special" so it's my fault๐Ÿ˜•
It's morning here, be back when I have tested

Bjorn

IotAppAccount
Joined
2017-01-18 17:54:24
Posts
13

It works fineโ˜ 

It also at the same time solved the problems I had .
The one I really had a year ago and as, ChWuel suggested, the library problem (Lack of know-how, even if it compiles and seems to work it really doesn't)  ๐Ÿ˜‡.
Many THANKS to you guys and Andreas who brought me in to this about 10 years ago!! 
As retired, much more challenging than puzzles or crosswords.  ๐Ÿ‘ด

Bjorn

ChWuel
Joined
2021-01-17 09:32:53
Posts
26

In response to IotAppAccount (View post):

It works fineโ˜  It also at the same time solved the problems I had .The one I really had a yea...

Hi Bjorn,

glad to hear, that it helped !

Due to our both difficulties, I'm now preparing some input for the WIKI (write my first App -> how to export with VS Code&PlatformIO) ... surely, we are not the only ones. Maybe you can then have a lok / review.

Christian

IotAppAccount
Joined
2017-01-18 17:54:24
Posts
13

Hi Christian thanks and:

I'll be happy if I can assist , I'm far from experiensed exept from doining a lot of misstakes ๐Ÿป

Onno Dirkzwager
Joined
2016-06-04 21:36:48
Posts
67

In response to ChWuel (View post):

Hi Bjorn, glad to hear, that it helped ! Due to our both difficulties, I'm now preparing some inpu...

Perfect timing as I am working on letting others post / update wiki articles.