Skip to content

Conversation

@fbiego
Copy link

@fbiego fbiego commented May 13, 2021

I have not verified if it compiles since I don't have all required libraries

@IoTopsDeveloper
Copy link
Owner

IoTopsDeveloper commented May 14, 2021

There are two libraries through which it can get compilation error from your side (i) Arduino JSON Library in version 5.x.x. and (ii) DHT-11 Temperature and Humidity Sensor Library ,I am providing their library in zip
ArduinoJson-5.x.zip
DHT.zip

@fbiego
Copy link
Author

fbiego commented May 14, 2021

Sketch size: 1391678 bytes
Global variables: 91828 bytes

ESP crashes immediately after connecting with BLE, I don't think BLE works well with Wifi

@IoTopsDeveloper
Copy link
Owner

IoTopsDeveloper commented May 15, 2021

Did you change partition size for the ESP32 before uploading the sketch ?
If no then, try this link to change partition size, then upload the sketch.It worked for me:
https://desire.giesecke.tk/index.php/2018/04/20/change-partition-size-arduino-ide/
Further more I tried MQTT without pull request, it worked from me which I will update you in future.
For Wifi Configuration via BLE I tried code from this :
https://desire.giesecke.tk/index.php/2018/04/06/esp32-wifi-setup-over-ble/
It also included the the Android Application with source code of it for Configuring Wifi Credentials for ESP32.
Could you integrate the wifi credentials section with OTA in application from above linked app ?

@IoTopsDeveloper
Copy link
Owner

IoTopsDeveloper commented May 27, 2021

Actually I think the problem in the firmware when I implemented my code with BLE OTA where writeBinary function and updateFromFS has been run into void loop function but the OTA part always run in the void setup. Is that right ?
And when I checked https://github.com/espressif/arduino-esp32/tree/master/libraries/Update, the update function never run in the void loop and the libraries of Update.h , FS.h FFat.h and SPIFFS.h part run always run the void setup() mode and that's where it crashed when I implemented my code with BLE OTA

Even if I am wrong, then it will be helpful if you provide Arduino Sketch source code for DIY ESP32 clock with BLE OTA . I may get my mistakes and rewrite the code with the help of ESP32 Clock code

@IoTopsDeveloper
Copy link
Owner

IoTopsDeveloper commented May 27, 2021

Sketch size: 1391678 bytes
Global variables: 91828 bytes

ESP crashes immediately after connecting with BLE, I don't think BLE works well with Wifi

Actually BLE Write Function of the BLE Library worked in void setup and Notify in void loop whereas Wifi related operations always worked in void loop mode. I think that's where it crashed where both wifi and Update FS and SPIFFS got called in void loop.

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

Successfully merging this pull request may close these issues.

2 participants