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

print

parent 507997a7
No related branches found
No related tags found
1 merge request!1MAJ BDD + Data commande fonctionnel
......@@ -180,7 +180,9 @@ class BLE_MAJ_MACHINE(RxCharacteristic):
RxCharacteristic.__init__(self, bus, index, service, SQL_MAJ_MACHINE_CHARACTERISTIC_UUID)
def WriteValue(self, value, options):
print(format(bytearray(value).decode()))
maj = unformalize_data_list(format(bytearray(value).decode()))
print(maj)
mysql_maj_machine(maj)
class BLE_MACHINE_SEND_ORDER(RxCharacteristic):
......
from bibliotheques.sql.sql import *
input = "0,None,None/1,6,0/2,2,0/3,None,None/4,None,None/5,None,None" #id_bec,id_ingredient,quantite
input_maj_machine = "0,None,None/1,6,0/2,2,0/3,None,None/4,None,None/5,None,None" #id_bec,id_ingredient,quantite
input_command_machine = "0,0,10/0,1,5/0,2,6"
print(mysql_get_cocktail_list())
print(mysql_get_ingredient_list())
......@@ -10,4 +11,5 @@ print(mysql_get_cocktail_composition_without_bec(1))
print(mysql_get_cocktail_composition_with_bec(1))
print(mysql_get_bec_from_ingredient(1))
mysql_add_ingredient("test")
mysql_maj_machine(unformalize_data_list(input))
\ No newline at end of file
mysql_maj_machine(unformalize_data_list(input_maj_machine))
mysql_get_composition_for_machine(unformalize_data_list(input_command_machine))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment