summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-04-04 17:21:59 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-05-05 00:30:29 -0700
commit91e1d0697da98971ab6375bfd745ed158b7b7185 (patch)
tree849dc9a8c6143db342e0cde988b37f2c513379d6 /README.md
parent967b96853fa13a206c959ecd536416151313c63d (diff)
binding: bluetooth-map: add initial MAP binding
This patchset brings initial Bluetooth MAP (Message Access Profile) support. Bug-AGL: SPEC-2351 Change-Id: I76b974978f72869f593526c4f6926bb5c27c48a9 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c382e18
--- /dev/null
+++ b/README.md
@@ -0,0 +1,52 @@
+# Bluetooth MAP (Message Service Profile) Service
+
+## Overview
+
+Bluetooth MAP (Message Access Profile) service uses the respective profile support from BlueZ
+to enable message notifications from SMS/email/etc.
+
+## Verbs
+
+| Name | Description | JSON Response |
+|-------------------|------------------------------------------|-------------------------------------------|
+| subscribe | subscribe to MAP service events | *Request:* {"value": "notification"} |
+| unsubscribe | unsubscribe to MAP service events | *Request:* {"value": "notification"} |
+
+## Events
+
+| Name | Description | JSON Event Data |
+|-------------------|------------------------------------------|-------------------------------------------|
+| notification | report notification message | see **notification event** section |
+
+
+### notification event
+
+<pre>
+{
+ "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:\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?
+ END:MSG\r\n
+ END:BBODY\r\n
+ END:BENV\r\n
+ END:BMSG\r\n
+ "
+}
+</pre>