From f20d1e390f25dd9f566c69968286b2ff4406ca87 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 9 May 2019 19:06:11 -0700 Subject: binding: bluetooth-map: add parser for bMessage output Parser to output more user-readable JSON of incoming messages Bug-AGL: SPEC-2351 SPEC-2392 Change-Id: Ib758f8901ff01579899112c75119596c4a0726be Signed-off-by: Matt Ranostay --- README.md | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f84bccc..66d92be 100644 --- a/README.md +++ b/README.md @@ -59,30 +59,13 @@ Send a message (if supported) via MAP profile:
 {
-  "bmessage":
-    "BEGIN:BMSG\r\n
-     VERSION:1.0\r\n
-     STATUS:UNREAD\r\n
-     TYPE:SMS_GSM\r\n
-     FOLDER:telecom/msg/inbox\r\n
-     NOTIFICATION:1\r\n
-     BEGIN:VCARD\r\n
-     VERSION:2.1\r\n
-     FN;CHARSET=UTF-8:Satoshi Nakamoto\r\n
-     N;CHARSET=UTF-8:Satoshi\r\n
-     TEL:+13605551212\r\n
-     END:VCARD\r\n
-     BEGIN:BENV\r\n
-     BEGIN:BBODY\r\n
-     CHARSET:UTF-8\r\n
-     LANGUAGE:UNKNOWN\r\n
-     LENGTH:46\r\n
-     BEGIN:MSG\r\n
-     Meet at Victor 23 at 6p?\r\n
-     END:MSG\r\n
-     END:BBODY\r\n
-     END:BENV\r\n
-     END:BMSG\r\n
-    "
+   "status": "UNREAD",
+   "type": "SMS_GSM",
+   "folder": "telecom/msg/inbox",
+   "recipient": {
+       "fn": "Satoshi Nakamoto",
+       "n": "Satoshi"
+    },
+    "message": "Meet at Victor 23 at 6p?"
 }
 
-- cgit 1.2.3-korg