BLE

For my final project, I hope to use Bluetooth for users to send data from their phones to the microcontroller. After trying to connect to my microcontroller with Bluetooth using an example Arduino code, it didn't work; I checked the seedxiao website and datasheet for the ES32C6 and learned that only BLE would work. SeedXiao provided an example BLE code, so I tried it.

Example BLE Code

Computer and Phone Connected

My computer could see and connect to the device but it kept dropping it.

I used RFConnect to connect to the microcontroller via BLE. While the connection was successful, I could not transmit any data

Wifi

Next, I used the example wifi code on the seed xiao website to put my microcontroller on the internet, then verified by doing a ping test

Ping test

Soft API

Next, I tried the soft API on the seed xiao website to make my microcontroller the server and my computer/phone the client. This worked well and I like not being dependent on wifi for the final project presentation

Seed Example Ardinuo Code

I was able to get streamlit gui on my phone, but unable to send data. I need to add an http post into my python script to send data. See Week 13 for more details