-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
How can I upload this to my ESP32 board #27
Comments
Can you tell us more about your setup? What operating system do you use? The first step is to set up the toolchain and then follow the steps until step 9. Once this is done, you should update the configuration file according to your device. I personally use nRF Connect to explore the services and characteristics (e.g. hydrometer value) that are exposed by the BLE device before configuring. The last step is to flash the ESP32 firmware using the |
Hi DurandA, Thanks for responding. I was able to get it flashed and can even do OTA updates, after following the guide. Didn't know about nRF connect, will check it out! Have been using BLE Scanner so far. |
Hey @hapklaar, Glad to hear you were able to set everything up! Let me know if you run into any issues. Good day! |
Hi @shmuelzon , good day to you too! Had no issues receiving data from the Tilt>ESP>Pi using mosquitto. Already graphing it in Zabbix on my Pi. Setup seems to be a little unstable however. Every few hours I have to reset the ESP to get new readings. Also haven't been able to get the log monitoring part working. After 'make remote-monitor' in msys32 shell no data is received. It just sits there at
|
Hey, Regarding setup stability, have a serial connection open would be the best way to figure out what's going on but we can start with remote logging. Next time it fails, could you please also try to ping the ESP32 so we know if it's still connected to the WiFi network or not? As for the remote logging feature, once it starts listening for log messages, is should print Let me know... |
I seem to be using a newer version:
When I run the python script directly, there is also no output. Shall try 3.1.2 later today. Guess a make clean / make flash after changing $IDF_PATH to the 3.1.2 folder is required? |
I would suggest a |
I redid everything with v3.1.2 and also new clone of your repo, but still no joy on remote-monitor. It's just sitting there doing nothing apparent. A 'make remote-monitor -d' show nothing special either, other than that its spawning a process after compiling:
|
I'm guessing Which version of Python are you using? I've tested on both Python 2.7 and 3.7 but on macOS and Linux, haven't tried on Windows. Could you also share the "log" portion of your configuration? |
Python version is 2.7.15 It's acting very strange looking at the trace, it seems to hang then continue at the same stages every time I execute Both trace and log output seems to halt for 40-60 seconds then another chunk is shown upon where output halts again.. Hard to explain, uploaded a vid of what is happening here PS attached entire config.json for review |
Hey, Sorry for the back-and-forth but since the outout was buffered, I can’t tell exactly where it really hangs. Could you please run Thanks |
Not a problem, really appreciate your help! The buffering was actually the reason for the 'halts' in output. With -u it works just fine and shows trace + log without issue. Without option -u it takes a while for log output to start, with -u I now have wireless logging. :) I suspect, because logs are transmitted using UDP and WIFI on my ESP32 seems flaky at best, and the device was not near my access point, I was just missing packets. |
This is probably just a difference in how output buffers are managed in Windows. I changed |
Excuse my ignorance, but how can I compile and upload this to my ESP32 board? I'd like to use this program to monitor my Tilt hydrometer and send it's major/minor data to an MQTT gateway.
Up until now I've only used Arduino IDE and am helpless without an .ino file...
thanks!
edit: Found out I need ESP-IDF for this. Followed the guide at https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html :)
The text was updated successfully, but these errors were encountered: