From 5bc20d03d7af5f07666345ae6d3d7f80f472096f Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sat, 22 Apr 2023 22:51:33 +0200 Subject: [PATCH] Added two new messages to parse --- .../gadget_bridge_parser.depend | 17 +++++++++++++++++ src/gadget_bridge_parser/main.c | 15 ++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/gadget_bridge_parser/gadget_bridge_parser.depend b/src/gadget_bridge_parser/gadget_bridge_parser.depend index 109b3e3..19ac5f2 100644 --- a/src/gadget_bridge_parser/gadget_bridge_parser.depend +++ b/src/gadget_bridge_parser/gadget_bridge_parser.depend @@ -16,3 +16,20 @@ +1681114227 source:d:\users\think\programmation\arduino\git_projects\w800_smart_watch\src\gadget_bridge_parser\gadget_bridge.c + "gadget_bridge.h" + + + + +1681150637 d:\users\think\programmation\arduino\git_projects\w800_smart_watch\src\gadget_bridge_parser\gadget_bridge.h + + + + +1681114227 source:d:\users\think\programmation\arduino\git_projects\w800_smart_watch\src\gadget_bridge_parser\main.c + + + + "gadget_bridge.h" + diff --git a/src/gadget_bridge_parser/main.c b/src/gadget_bridge_parser/main.c index 8e90359..bddf94d 100644 --- a/src/gadget_bridge_parser/main.c +++ b/src/gadget_bridge_parser/main.c @@ -22,6 +22,7 @@ [10][16]GB({t:"calendar",id:63749,type:0,timestamp:1681077600,durationInSeconds:86400,title:"Easter Monday",description:"Public holiday",location:"",calName:"anatole.schramm-henry@master-stic.fr/Holidays in France",color:-15292571,allDay:true}) [10][16]GB({t:"weather",temp:0,hum:0,code:3200,wind:0.0,wdir:0,loc:""})[10] +[16]GB({t:"notify",id:1682154002,src:"Gadgetbridge",subject:"This is a test payload",body:"This is a test payload ",sender :"This is a test payload ",tel:"This is a test payload "})[10] [16]GB({t:"notify",id:1680859061,body:"test hehe test",sender:"+33652623698",tel:"+33652623698"}) [10][16]GB({t:"notify",id:1680859062,src:"Messages",title:"06 52 62 36 98",body:"test hehe test"})[10] [16]GB({t:"notify",id:1680859063,src:"E-mail",title:"Th3maz1ng Wot Channel",body:"Test subject"})[10] @@ -279,8 +280,20 @@ const char *sample[] = "deo with subtitles)\"", ",dur:219,c:-1,n:-1})", +"[16]GB({t:\"notify\",i", +"d:1680859061,body:\"tes", +"t hehe test\",sender:\"", +"+33652623698\",tel:\"+3", +"3652623698\"})", - +"[16]GB({t:\"notify\",id:", +"1682154002,src:\"Gadgetb", +"ridge\",subject:\"This i", +"s a test payload\",body:\"", +"This is a test payload \",", +"sender :\"This is a test", +"payload \",tel:\"This is", +" a test payload \"})[10]", }; int main()