Skip to content
Snippets Groups Projects
Commit 7897ab0d authored by Adrien Chabod's avatar Adrien Chabod
Browse files

Ajout ingredient BLE

parent f4ab9ac4
No related branches found
No related tags found
1 merge request!1MAJ BDD + Data commande fonctionnel
......@@ -176,10 +176,9 @@ class BLE_ADD_INGREDIENT(RxCharacteristic):
RxCharacteristic.__init__(self, bus, index, service, SQL_ADD_INGREDIENT_CHARACTERISTIC_UUID)
def WriteValue(self, value, options):
print(format(bytearray(value).decode()))
ingredient = unformalize_data_list(format(bytearray(value).decode()))
print(ingredient)
print(ingredient[0])
ingredient = format(bytearray(value).decode())
mysql_add_ingredient(ingredient)
class BLE_MACHINE_SEND_ORDER(RxCharacteristic):
def __init__(self, bus, index, service):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment