1mckenna / esp32_iGrill

ESP32 iGrill BLE Client
MIT License
46 stars 14 forks source link

Status Online with iGrill Turned Off #28

Closed robferre closed 1 year ago

robferre commented 1 year ago

this is awesome - thanks all i have noticed though when i turn off the igrill v2 that the status shows "online" and stays like that with all probes retained... im watching the mqtt flow of info via mqtt explorer and dont see the status change then when i turn it back on - the status stays but the probe info updates cant get it to get to offline when i turn the igrill off is there something i need to do differently?

1mckenna commented 1 year ago

The status MQTT topic is used to keep track of whether or not ESP32 device is connected to the MQTT server. If you unplug the ESP32 it will change to offline.

If you are wanting the temp probes to reset to a blank value you can just unplug the temp probes from the iGrill before turning it off.

robferre commented 1 year ago

Yeah right so it's not so much if the esp has a Bluetooth connection. More if the esp is on or not... There isn't a sensor to detect Bluetooth connection or not? (Ie igrill is on or off)

On Fri, 14 Apr 2023, 12:17 pm Logan McKenna, @.***> wrote:

The status MQTT topic is used to keep track of whether or not ESP32 device is connected to the MQTT server. If you unplug the ESP32 it will change to offline.

If you are wanting the temp probes to reset to a blank value you can just unplug the temp probes from the iGrill before turning it off.

— Reply to this email directly, view it on GitHub https://github.com/1mckenna/esp32_iGrill/issues/28#issuecomment-1507835509, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA24DYMHIJT2LL6YA65QPD3XBCXTXANCNFSM6AAAAAAW4Y4YKY . You are receiving this because you authored the thread.Message ID: @.***>

1mckenna commented 1 year ago

I normally unplug/plug my esp in when using the iGrill, but it does make sense to add in a sensor for when the iGrill is connected/disconnected. I'll work on getting the code updated and let you know when there is a branch ready for you to test and confirm its working correctly.

1mckenna commented 1 year ago

I just pushed a the statusUpdates branch that should resolve this for you.

The code now

When you get a chance try pulling the branch and let me know how it works on your end.