kot 3 months ago
parent
commit
54577b71be
2 changed files with 44 additions and 2 deletions
  1. 3 2
      README.md
  2. 41 0
      docs/cgm-sino.md

+ 3 - 2
README.md

@@ -2,5 +2,6 @@
 
 * [儿童手表数据对接-硅基动感](./docs/wear/sgtc/%E5%84%BF%E7%AB%A5%E6%89%8B%E8%A1%A8%E8%A1%A8%E7%9B%98%E6%95%B0%E6%8D%AE%E5%AF%B9%E6%8E%A5.md)
 * [AAPS 接入 硅基动感科研版](./docs/aps/cgms/sisensing/%E7%A1%85%E5%9F%BA%E5%8A%A8%E6%84%9F%E7%A7%91%E7%A0%94%E7%89%88.md)
-* [微泰手表接入](./docs/weitai-watch.md)
-* [翰思维尔手表](./docs/wear/翰思维尔/catalog.md)
+* [翰思维尔手表](./docs/wear/翰思维尔/catalog.md)
+* [微泰CGM>>AAPS](./docs/weitai-watch.md)
+* [三诺CGM>>AAPS](./docs/cgm-sino.md)

+ 41 - 0
docs/cgm-sino.md

@@ -0,0 +1,41 @@
+# AAPS join Sino
+*v1.0*
+
+| 时间      | 内容 | 版本 | 修订人 |
+| --------- | ---- | ---- | ------ |
+| 2024-1-23 | 创建 | 1.0  | kot    |
+
+## Aidex Send AAPS 示例:
+
+```java
+Intent intent = new Intent();
+intent.setAction(Action);
+// 填充数据
+Context.sendBroadcast(intent);
+```
+
+- ACTION
+    - 类型:String 常量
+    - 区分大小写
+    - 值:com.sino.cgm.EXTRA_BG
+<br/>
+
+## AAPS Receiver Sino 示例:
+
+```java
+private BroadcastReceiver receiver = new BroadcastReceiver() {
+    @Override
+    public void onReceive(context: Context, intent: Intent) {
+
+        //do samething
+    }
+};
+
+// 订阅
+IntentFilter filter=new IntentFile();
+filter.addAction("com.sino.cgm.EXTRA_BG");
+context.registerReceiver(receiver,filter);
+
+// 取消订阅
+context.unregisterReceiver(receiver);
+```