Skip to content

Adding self provisioning example #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 19, 2020
Merged

Adding self provisioning example #187

merged 8 commits into from
Aug 19, 2020

Conversation

luigigubello
Copy link
Contributor

Adding a new example for provisioning the boards MKR WiFi 1010 and Nano 33 IoT to Arduino IoT Cloud using Arduino Cloud API.

Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @luigigubello 👋 Good work! However, when testing it on MKR WiFi 1010 and PROD I was unable to connect to the server ...

if (client.connect(server, 443)) {
  /* ... */

fails which manifests itself in a endless loop of

No client
No client
No client

. Also please add this file to the CI build @per1234 can help if you've got any questions.


#include "arduino_secrets.h"
#include "ECCX08TLSConfig.h"
#include <ArduinoBearSSL.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArduinoBearSSL has been integrated into ArduinoIoTCloud:master:head so there is no need to include this here, sketch compiles fine without it.

Copy link
Contributor Author

@luigigubello luigigubello Aug 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArduinoBearSSL has been integrated into ArduinoIoTCloud:master:head so there is no need to include this here, sketch compiles fine without it.

👍 💯

when testing it on MKR WiFi 1010 and PROD I was unable to connect to the server

Are you using Arduino IoT Cloud 0.10 and NINA-fw 1.3.0? Can you change delay(5000); in delay(10000); and try again? Thank you! It works for me

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please first add this to CI build, that alone usually catches all kinds of problems.

@arduino-libraries arduino-libraries deleted a comment from github-actions bot Aug 18, 2020
@arduino-libraries arduino-libraries deleted a comment from github-actions bot Aug 18, 2020
@arduino-libraries arduino-libraries deleted a comment from github-actions bot Aug 18, 2020
@github-actions
Copy link

Memory usage change @ 06ea138

Board flash RAM for global variables
arduino-beta:mbed:envie_m4 0 - 0 0 - 0
arduino-beta:mbed:envie_m7 0 - 0 0 - 0
arduino:samd:mkrgsm1400 0 - 0 0 - 0
arduino:samd:mkrnb1500 0 - 0 0 - 0
arduino:samd:mkrwan1300 0 - 0 0 - 0
esp8266:esp8266:huzzah 0 - 0 0 - 0
Click for full report table
Board examples/ArduinoIoTCloud-Advanced
flash
examples/ArduinoIoTCloud-Advanced
RAM for global variables
examples/ArduinoIoTCloud-Basic
flash
examples/ArduinoIoTCloud-Basic
RAM for global variables
examples/utility/ArduinoIoTCloud_Travis_CI
flash
examples/utility/ArduinoIoTCloud_Travis_CI
RAM for global variables
examples/utility/Provisioning
flash
examples/utility/Provisioning
RAM for global variables
arduino-beta:mbed:envie_m4 0 0 0 0 0 0 0 0
arduino-beta:mbed:envie_m7 0 0 0 0 0 0 0 0
arduino:samd:mkrgsm1400 0 0 0 0 0 0 0 0
arduino:samd:mkrnb1500 0 0 0 0 0 0 0 0
arduino:samd:mkrwan1300 0 0 0 0 0 0
esp8266:esp8266:huzzah 0 0 0 0 0 0
Click for full report CSV
Board,examples/ArduinoIoTCloud-Advanced<br>flash,examples/ArduinoIoTCloud-Advanced<br>RAM for global variables,examples/ArduinoIoTCloud-Basic<br>flash,examples/ArduinoIoTCloud-Basic<br>RAM for global variables,examples/utility/ArduinoIoTCloud_Travis_CI<br>flash,examples/utility/ArduinoIoTCloud_Travis_CI<br>RAM for global variables,examples/utility/Provisioning<br>flash,examples/utility/Provisioning<br>RAM for global variables
arduino-beta:mbed:envie_m4,0,0,0,0,0,0,0,0
arduino-beta:mbed:envie_m7,0,0,0,0,0,0,0,0
arduino:samd:mkrgsm1400,0,0,0,0,0,0,0,0
arduino:samd:mkrnb1500,0,0,0,0,0,0,0,0
arduino:samd:mkrwan1300,0,0,0,0,0,0,,
esp8266:esp8266:huzzah,0,0,0,0,0,0,,

@aentinger aentinger merged commit 714df56 into arduino-libraries:master Aug 19, 2020
@aentinger aentinger deleted the selfprovisioning_example branch August 19, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants