iOSのBLEコントローラアプリ「RCBController」とmbed HRM1017を接続し、RCサーボモータを操作するテストプログラムです。
Dependencies: BLE_API_Native_IRC Servo mbed
Fork of BLE_RCBController by
- 古いBLEライブラリを使っているのでプラットフォームは”Nordic nRF51822”を選択してください。
- ライブラリ類はUpdateしないでください。コンパイルエラーになります。
うまく接続できない時は、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアしてみてください。
BLE_API_Native_IRC/hw/nRF51822n/nordic/nrf-sdk/ble/ble_central_bondmngr.h@0:8c643bfe55b7, 2014-07-10 (annotated)
- Committer:
- jksoft
- Date:
- Thu Jul 10 14:21:52 2014 +0000
- Revision:
- 0:8c643bfe55b7
??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:8c643bfe55b7 | 1 | #ifndef __BLE_CENTRAL_BONDMNGR_H_ |
jksoft | 0:8c643bfe55b7 | 2 | #define __BLE_CENTRAL_BONDMNGR_H_ |
jksoft | 0:8c643bfe55b7 | 3 | |
jksoft | 0:8c643bfe55b7 | 4 | #include "nordic_global.h" |
jksoft | 0:8c643bfe55b7 | 5 | #include "ble.h" |
jksoft | 0:8c643bfe55b7 | 6 | #include "ble_gap.h" |
jksoft | 0:8c643bfe55b7 | 7 | |
jksoft | 0:8c643bfe55b7 | 8 | #include <stdint.h> |
jksoft | 0:8c643bfe55b7 | 9 | #include <stdbool.h> |
jksoft | 0:8c643bfe55b7 | 10 | |
jksoft | 0:8c643bfe55b7 | 11 | typedef struct |
jksoft | 0:8c643bfe55b7 | 12 | { |
jksoft | 0:8c643bfe55b7 | 13 | ble_gap_sec_params_t * p_sec_params; |
jksoft | 0:8c643bfe55b7 | 14 | } ble_central_bondmngr_t; |
jksoft | 0:8c643bfe55b7 | 15 | |
jksoft | 0:8c643bfe55b7 | 16 | typedef struct |
jksoft | 0:8c643bfe55b7 | 17 | { |
jksoft | 0:8c643bfe55b7 | 18 | ble_gap_sec_params_t * p_sec_params; |
jksoft | 0:8c643bfe55b7 | 19 | bool delete_bonds; |
jksoft | 0:8c643bfe55b7 | 20 | } ble_central_bondmngr_init_t; |
jksoft | 0:8c643bfe55b7 | 21 | |
jksoft | 0:8c643bfe55b7 | 22 | uint32_t ble_central_bondmngr_init(ble_central_bondmngr_t * p_bm, ble_central_bondmngr_init_t * p_bm_init); |
jksoft | 0:8c643bfe55b7 | 23 | void ble_central_bondmngr_on_ble_evt(ble_central_bondmngr_t * p_bm, ble_evt_t * p_ble_evt); |
jksoft | 0:8c643bfe55b7 | 24 | uint32_t ble_central_bondmngr_store(ble_central_bondmngr_t * p_bm); |
jksoft | 0:8c643bfe55b7 | 25 | |
jksoft | 0:8c643bfe55b7 | 26 | #endif |