Skip to content
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

ESP32 Support #1

Open
richie241 opened this issue Aug 18, 2021 · 10 comments
Open

ESP32 Support #1

richie241 opened this issue Aug 18, 2021 · 10 comments
Assignees

Comments

@richie241
Copy link

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

@15D2020
Copy link

15D2020 commented Mar 3, 2022

Hope support for the ESP32 soon?

@epiller
Copy link
Collaborator

epiller commented Mar 30, 2022

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!

@epiller epiller self-assigned this Mar 30, 2022
@KrisWerbrouck1
Copy link

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

@epiller
Copy link
Collaborator

epiller commented Aug 17, 2022

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
Copy link

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
Copy link
Collaborator

epiller commented Aug 18, 2022

@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?

@KrisWerbrouck1
Copy link

Arduino IDE version 1.8.19 and ESP32 1.0.6.

@KrisWerbrouck1
Copy link

#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)
}

@epiller
Copy link
Collaborator

epiller commented Aug 23, 2022

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
Copy link
Collaborator

epiller commented Nov 18, 2022

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

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

No branches or pull requests

4 participants