Skip to content

Some examples how to deal with ESP32C3 and WiFi etc.

Notifications You must be signed in to change notification settings

kr15h/XIAO-ESP32C3-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XIAO ESP32C3 Examples

Some examples done for the XIAO ESP32C3 board. They are inspired from other examples, but enhanced a bit to match a certain purpose.

WiFi REST

This example shows a basic way how to make a REST API with a WiFi connected XIAO ESP32C3 board. Check it out!

WiFi REST Lib

REST example with a library. Get it! You need to install the following libraries using the Library Manager (Tools > Manage Libraries).

  • AsyncTCP
  • ESPAsyncTCP
  • ESPAsyncWebSrv

WARNING! There is a bug in the ESPAsyncWebSrv library. Follow steps below to fix it.

  1. Navigate to your Arduino libraries folder, usually something like Documents/Arduino/libraries. Ask internet if can't find.
  2. The ESPAsyncWebSrv folder should be there. Go in there and find file AsyncWebSocket.cpp.
  3. Change the line 832 from return IPAddress(0U); to return IPAddress(static_cast<uint32_t>(0U));.
  4. Save the file and proceed with your Arduino project.

jQuery Boostrap REST Demo

This example contains a HTML page that uses jQuery and Bootstrap libraries to interact with the REST API covered in WiFi REST Lib example.

WiFi REST JSON

Currently untested ChatGPT generated example how to use the ArduinoJson library with AsyncWebSrv.

Licenses

About

Some examples how to deal with ESP32C3 and WiFi etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages