Skip to content

Commit

Permalink
Set write permission of LED characteristic as open. Now should be abl…
Browse files Browse the repository at this point in the history
…e to blink the LED from master control panel.
  • Loading branch information
liquitious committed Dec 20, 2015
1 parent a78faa7 commit f298b6e
Show file tree
Hide file tree
Showing 3 changed files with 1,335 additions and 1,328 deletions.
2 changes: 1 addition & 1 deletion ble_lbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static uint32_t led_char_add(ble_lbs_t * p_lbs)
memset(&attr_md, 0, sizeof(attr_md));

BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&attr_md.write_perm);
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);
attr_md.vloc = BLE_GATTS_VLOC_STACK;
attr_md.rd_auth = 0;
attr_md.wr_auth = 0;
Expand Down
Loading

0 comments on commit f298b6e

Please sign in to comment.