Page 1 of 1

Get data from ESP32 using I2S

Posted: Wed Jun 07, 2017 5:21 pm
by Louisca
Hi,
I was wondering how can i get data from my sensors which are linked to my ESP32 DevKit and then send it to my raspberry pi to treat these data.
I'm currently trying to work with the examples i2C and Ble_adv to solve the issue but i don't really see how can i make that.

If anyone has an idea that's would be great :)

Louis

Re: Get data from ESP32 using I2S

Posted: Fri Jun 09, 2017 7:55 am
by kurtzweber
Hi

I suppose in the title you meant "i2c" and not "i2s"... anyway if I undestood correctly your question:

sensors --(i2c)--> esp32 --(???)--> raspberry

there are a lot of different ways to make the esp32 chip "talk" with your raspberry... personally I'd use MQTT, installing an MQTT broker (Mosquitto...) on your Raspberry but of course you can also use HTTP (REST interface...)...

Re: Get data from ESP32 using I2S

Posted: Sun Jun 11, 2017 3:06 pm
by Louisca
Hi,
Yes that's what I meant sorry.
And instead of MQTT (with seams to take a lot of energy) may I use BLE? I want to design an Iot and maximize its lifespan with one battery. Send data with a BLE GATT seemed more accurate ? that's what I red on the internet i think
Thanks a lot for your fast response

Re: Get data from ESP32 using I2S

Posted: Mon Jun 12, 2017 7:02 am
by kurtzweber
Hi!

yes of course you can use BLE to transfer data between esp32 and raspberry... on the internet there are plenty of examples of using Raspberry as a BLE "server", like:
https://www.hackster.io/inmyorbit/build ... ble-7a7c2c