UART commands for getting dish temperature
This commit is contained in:
@@ -39,6 +39,12 @@ def mqtt_sensor_data(id_microwave, dish_temp, ambient_temp):
|
||||
"ambient_temp": ambient_temp
|
||||
})
|
||||
|
||||
def lora_sensor_data(dish_temp, ambient_temp):
|
||||
return as_json({
|
||||
"dish_temp": dish_temp,
|
||||
"ambient_temp": ambient_temp
|
||||
})
|
||||
|
||||
def mqtt_cooking_config(id_microwave, cook_time, power_level, target_temp):
|
||||
return as_json({
|
||||
"id_microwave": id_microwave,
|
||||
|
||||
+3
-1
@@ -97,4 +97,6 @@ class UARTCommand:
|
||||
class UARTCommandType:
|
||||
"""Enumeration of known UART command types."""
|
||||
COOKING_PARAMS = "COOKING_PARAMS"
|
||||
COOKING_STATE_UPDATE = "COOKING_STATE_UPDATE"
|
||||
COOKING_STATE_UPDATE = "COOKING_STATE_UPDATE"
|
||||
TEMPERATURE_REQUEST = "TEMPERATURE_REQUEST"
|
||||
TEMPERATURE_RESPONSE = "TEMPERATURE_RESPONSE"
|
||||
Reference in New Issue
Block a user