Skip to content

Commit 83d3c93

Browse files
committed
Merge pull request #7 from Kacp3r3/master
ESP8266 ESP32 Feather 32u4 Feather M0 WiFi
2 parents f16dc3a + 62da789 commit 83d3c93

22 files changed

+2156
-76
lines changed

.github/workflows/compile-examples.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ jobs:
1616
"arduino:samd:nano_33_iot",
1717
"arduino:samd:mkrvidor4000",
1818
'"esp8266:esp8266:huzzah" "http://arduino.esp8266.com/stable/package_esp8266com_index.json"'
19+
#'"esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none" "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"'
1920
]
2021

2122
steps:
23+
#- run: pip install pyserial
24+
#- run: pip3 install pyserial
2225
- uses: actions/checkout@v1
2326
with:
2427
fetch-depth: 1
@@ -27,3 +30,6 @@ jobs:
2730
with:
2831
fqbn: ${{ matrix.fqbn }}
2932
libraries: ${{ env.LIBRARIES }}
33+
34+
35+

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ The code will manage the LTE-M, GSM and WiFi connection(depending on currently u
1616
| Arduino MKR 1500 NB | OK | OK | OK |
1717
| Arduino MKR VIDOR 4000 | OK | OK* | - |
1818
| Arduino Nano 33 IoT | OK | OK | - |
19-
| ESP8266 Boards(Beta) | OK | - | - |
19+
| ESP8266 Boards | OK | - | - |
20+
| ESP32 Boards | OK | OK | - |
21+
| Adafruit Feather M0 WiFi| OK | OK | - |
22+
| Adafruit Feather 32u4 | OK | - | OK |
2023

2124
## Prerequisites/dependecies ##
2225
This code needs 2 ~~3~~ external libraries to run, that you can install using the built-in [Library Manager](https://www.arduino.cc/en/guide/libraries) of the Arduino IDE.
@@ -31,11 +34,11 @@ This code needs 2 ~~3~~ external libraries to run, that you can install using th
3134

3235
\* currently integrated into this SDK, until https://github.com/arduino-libraries/ArduinoMqttClient/pull/44 fix will be merged
3336

34-
#### Library For ESP8266 boards
37+
#### Library for ESP8266 and ESP32 boards
3538
- [PubSubClient](https://pubsubclient.knolleary.net/) library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT
3639

3740
#### Library developed by Benoît Blanchon*
38-
*mandatory for both Arduino and ESP boards
41+
*mandatory for both Arduino, ESP and Adafruit boards
3942
- [ArduinoJson](https://arduinojson.org/), a powerful library used to parse, store and handle JSON easily
4043

4144
#### SAMD21 Arduino core
@@ -48,7 +51,13 @@ This code needs 2 ~~3~~ external libraries to run, that you can install using th
4851
3. Clone or download the directory from Github.
4952
4. In the **'src/arduino_secrets.h'** file :
5053
- Paste it as initialization value for the `SECRET_LIVEOBJECTS_API_KEY` variable in the 'arduino_secrets.h' file -keep the double quotes!
54+
55+
In case of feather 32u4 you have to change type of this variable to char* from String
5156
- Fill in the connection(WIFI or GSM) credentials if needed (pin code, APN information, etc). In case of GSM connection, most of the time, APN will set up automatically. Your SIM card may have a default pin code (like "0000"), unless you deactivated it using the [Pin management](https://github.com/arduino-libraries/MKRNB/blob/master/examples/Tools/PinManagement/PinManagement.ino) sketch, provided with the MKRNB library.
57+
58+
In case of feather32u4 you have to change APN in library file LiveObjectsFona.cpp
59+
60+
Line ~165 - m_Fona.setGPRSNetworkSettings(F("APN"), F(""), F(""));
5261
5. Import library into the Arduino IDE, to do this select: *Sketch-> Include Library-> Add .ZIP Library* and select folder which you cloned in the previous step(actually it doesn't need to be .ZIP-ed to be imported). After successful import you should see example sketches in *File->Examples->LiveObjectsSDK*
5362

5463

0 commit comments

Comments
 (0)