allthingstalk/arduino-wifi-sdk

ESP32 Support

richie241 opened this issue · 10 comments

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

Hope support for the ESP32 soon?

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!

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

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.

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.

@KrisWerbrouck1

  • Which version of Arduino IDE are you running?
  • Which version of ESP32 Arduino Core do you have installed?
  • Do you mind sharing your sketch?

Arduino IDE version 1.8.19 and ESP32 1.0.6.

#include <AllThingsTalk_WiFi.h>
#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)
}

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?

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