Skip to content

Instantly share code, notes, and snippets.

@hkwi
Created November 29, 2014 15:43
Show Gist options
  • Save hkwi/66fbbd85c504f113a1d7 to your computer and use it in GitHub Desktop.
Save hkwi/66fbbd85c504f113a1d7 to your computer and use it in GitHub Desktop.

navigator.mozBle

  • scanLEDevice(client_if, is_start:bool)
  • connectBle(client_if, device.address, true);
  • disconnectBle(client_if, bd_addr, conn_id)
  • getIncludeService(conn_id, select_srvc_id, start_incl_srvc_id);
  • searchService(conn_id, '')
  • readCharacteristic(conn_id, select_srvc_id, select_char_id, auth_req);
  • writeCharacteristic(conn_id, select_srvc_id, select_char_id, write_type, len, auth_req, value);
  • getCharacteristic(conn_id, select_srvc_id, start_char_id)
  • readDescriptor(conn_id, select_srvc_id, select_char_id, select_descr_id, auth_req);
  • writeDescriptor(conn_id, select_srvc_id, select_char_id, select_descr_id, write_type, len, auth_req, value);
  • getDescriptor(conn_id, select_srvc_id, select_char_id, start_descr_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment