allthingstalk / arduino-wifi-sdk

♾ AllThingsTalk Arduino SDK for WiFi Devices
https://www.allthingstalk.com/
Apache License 2.0
5 stars 2 forks source link

ESP32 Support #1

Open richie241 opened 3 years ago

richie241 commented 3 years ago

Hello Together When can we expect WiFi support for the ESP32, or is it still being worked on at all?

15D2020 commented 2 years ago

Hope support for the ESP32 soon?

epiller commented 2 years ago

Hello @richie241 & @15D2020, ESP32 support has been added! It's currently in beta (not published on Arduino Library Manager) but you can test it out by downloading the SDK from GitHub (master branch) - any feedback is greatly appreciated!

KrisWerbrouck1 commented 2 years ago

With the ESP32 in Arduino IDE I get following error: CborEncoder.h:74:7: error: 'void CborWriter::writeInt(int32_t)' cannot be overloaded

epiller commented 2 years ago

Hey @KrisWerbrouck1, I couldn't replicate this issue.
Can you tell me what exactly are you trying to compile and when does this issue arise? What ESP32 board did you select in Tools > Boards?

Keep in mind the ESP32 support is in beta and the Connection LED isn't functional yet.

KrisWerbrouck1 commented 2 years ago

I tested with LOLIN D32 PRO, ESP32 DEV module and TTGO T1.

I follow the readme.md. When add init() method to setup() function and loop() method to your loop() function. I get the error.

epiller commented 2 years ago

@KrisWerbrouck1

KrisWerbrouck1 commented 2 years ago

Arduino IDE version 1.8.19 and ESP32 1.0.6.

KrisWerbrouck1 commented 2 years ago

include

include "keys.h" // Include our newly created file

auto wifiCreds = WifiCredentials(WIFI_SSID, WIFI_PASSWORD); auto deviceCreds = DeviceConfig(DEVICE_ID, DEVICE_TOKEN); auto device = Device(wifiCreds, deviceCreds);

void setup() { // put your setup code here, to run once: device.init(); // Initializes AllThingsTalk }

void loop() { // put your main code here, to run repeatedly: device.loop(); // Keeps WiFi and AllThingsTalk connection alive (if active) }

epiller commented 2 years ago

I still can't replicate the issue. I'm using the latest commit from the master branch and I compiled the exact code you posted here without any problems.
Which ESP32 board did you select in Arduino > Tools > Board?

epiller commented 1 year ago

@KrisWerbrouck1 Finally managed to replicate the issue and pushed a commit that fixes it.