@@ -51,58 +51,58 @@ JsVar *bleGetActiveBluetoothGattServer();
51
51
#endif
52
52
53
53
// ------------------------------------------------------------------------------
54
- void jswrap_nrf_init ();
55
- bool jswrap_nrf_idle ();
56
- void jswrap_nrf_kill ();
54
+ void jswrap_ble_init ();
55
+ bool jswrap_ble_idle ();
56
+ void jswrap_ble_kill ();
57
57
// Used to dump bluetooth initialisation info for 'dump'
58
- void jswrap_nrf_dumpBluetoothInitialisation (vcbprintf_callback user_callback , void * user_data );
58
+ void jswrap_ble_dumpBluetoothInitialisation (vcbprintf_callback user_callback , void * user_data );
59
59
/** Reconfigure the softdevice (on init or after restart) to have all the services/advertising we need */
60
- void jswrap_nrf_reconfigure_softdevice ();
60
+ void jswrap_ble_reconfigure_softdevice ();
61
61
// ------------------------------------------------------------------------------
62
62
63
63
64
- void jswrap_nrf_bluetooth_disconnect ();
65
- void jswrap_nrf_bluetooth_sleep ();
66
- void jswrap_nrf_bluetooth_wake ();
67
- void jswrap_nrf_bluetooth_restart ();
68
- JsVar * jswrap_nrf_bluetooth_getAddress ();
69
- void jswrap_nrf_bluetooth_setAddress (JsVar * address );
64
+ void jswrap_ble_disconnect ();
65
+ void jswrap_ble_sleep ();
66
+ void jswrap_ble_wake ();
67
+ void jswrap_ble_restart ();
68
+ JsVar * jswrap_ble_getAddress ();
69
+ void jswrap_ble_setAddress (JsVar * address );
70
70
71
- JsVarFloat jswrap_nrf_bluetooth_getBattery ();
72
- void jswrap_nrf_bluetooth_setAdvertising (JsVar * data , JsVar * options );
73
- JsVar * jswrap_nrf_bluetooth_getAdvertisingData (JsVar * data , JsVar * options );
74
- void jswrap_nrf_bluetooth_setScanResponse (JsVar * data );
75
- void jswrap_nrf_bluetooth_setServices (JsVar * data , JsVar * options );
76
- void jswrap_nrf_bluetooth_updateServices (JsVar * data );
77
- void jswrap_nrf_bluetooth_setScan (JsVar * callback , JsVar * options );
78
- void jswrap_nrf_bluetooth_findDevices (JsVar * callback , JsVar * options );
79
- void jswrap_nrf_bluetooth_setRSSIHandler (JsVar * callback );
80
- void jswrap_nrf_bluetooth_setTxPower (JsVarInt pwr );
81
- void jswrap_nrf_bluetooth_setLowPowerConnection (bool lowPower );
71
+ JsVarFloat jswrap_ble_getBattery ();
72
+ void jswrap_ble_setAdvertising (JsVar * data , JsVar * options );
73
+ JsVar * jswrap_ble_getAdvertisingData (JsVar * data , JsVar * options );
74
+ void jswrap_ble_setScanResponse (JsVar * data );
75
+ void jswrap_ble_setServices (JsVar * data , JsVar * options );
76
+ void jswrap_ble_updateServices (JsVar * data );
77
+ void jswrap_ble_setScan (JsVar * callback , JsVar * options );
78
+ void jswrap_ble_findDevices (JsVar * callback , JsVar * options );
79
+ void jswrap_ble_setRSSIHandler (JsVar * callback );
80
+ void jswrap_ble_setTxPower (JsVarInt pwr );
81
+ void jswrap_ble_setLowPowerConnection (bool lowPower );
82
82
83
- void jswrap_nrf_nfcURL (JsVar * url );
84
- void jswrap_nrf_nfcRaw (JsVar * payload );
85
- JsVar * jswrap_nrf_nfcStart (JsVar * payload );
86
- void jswrap_nrf_nfcStop ();
87
- void jswrap_nrf_nfcSend (JsVar * payload );
88
- void jswrap_nrf_sendHIDReport (JsVar * data , JsVar * callback );
83
+ void jswrap_nfc_URL (JsVar * url );
84
+ void jswrap_nfc_raw (JsVar * payload );
85
+ JsVar * jswrap_nfc_start (JsVar * payload );
86
+ void jswrap_nfc_stop ();
87
+ void jswrap_nfc_send (JsVar * payload );
88
+ void jswrap_ble_sendHIDReport (JsVar * data , JsVar * callback );
89
89
90
- JsVar * jswrap_nrf_bluetooth_requestDevice (JsVar * options );
91
- JsVar * jswrap_nrf_bluetooth_connect (JsVar * mac , JsVar * options );
92
- void jswrap_nrf_setWhitelist (bool whitelist );
93
- void jswrap_nrf_setConnectionInterval (JsVar * interval );
90
+ JsVar * jswrap_ble_requestDevice (JsVar * options );
91
+ JsVar * jswrap_ble_connect (JsVar * mac , JsVar * options );
92
+ void jswrap_ble_setWhitelist (bool whitelist );
93
+ void jswrap_ble_setConnectionInterval (JsVar * interval );
94
94
95
95
JsVar * jswrap_BluetoothDevice_gatt (JsVar * parent );
96
- JsVar * jswrap_nrf_BluetoothRemoteGATTServer_connect (JsVar * parent , JsVar * options );
96
+ JsVar * jswrap_ble_BluetoothRemoteGATTServer_connect (JsVar * parent , JsVar * options );
97
97
void jswrap_BluetoothRemoteGATTServer_disconnect (JsVar * parent );
98
- JsVar * jswrap_nrf_BluetoothRemoteGATTServer_startBonding (JsVar * parent , bool forceRePair );
99
- JsVar * jswrap_nrf_BluetoothRemoteGATTServer_getSecurityStatus (JsVar * parent );
98
+ JsVar * jswrap_ble_BluetoothRemoteGATTServer_startBonding (JsVar * parent , bool forceRePair );
99
+ JsVar * jswrap_ble_BluetoothRemoteGATTServer_getSecurityStatus (JsVar * parent );
100
100
JsVar * jswrap_BluetoothRemoteGATTServer_getPrimaryService (JsVar * parent , JsVar * service );
101
101
JsVar * jswrap_BluetoothRemoteGATTServer_getPrimaryServices (JsVar * parent );
102
102
void jswrap_BluetoothRemoteGATTServer_setRSSIHandler (JsVar * parent , JsVar * callback );
103
103
JsVar * jswrap_BluetoothRemoteGATTService_getCharacteristic (JsVar * parent , JsVar * characteristic );
104
104
JsVar * jswrap_BluetoothRemoteGATTService_getCharacteristics (JsVar * parent );
105
- JsVar * jswrap_nrf_BluetoothRemoteGATTCharacteristic_writeValue (JsVar * characteristic , JsVar * data );
106
- JsVar * jswrap_nrf_BluetoothRemoteGATTCharacteristic_readValue (JsVar * characteristic );
107
- JsVar * jswrap_nrf_BluetoothRemoteGATTCharacteristic_startNotifications (JsVar * characteristic );
108
- JsVar * jswrap_nrf_BluetoothRemoteGATTCharacteristic_stopNotifications (JsVar * characteristic );
105
+ JsVar * jswrap_ble_BluetoothRemoteGATTCharacteristic_writeValue (JsVar * characteristic , JsVar * data );
106
+ JsVar * jswrap_ble_BluetoothRemoteGATTCharacteristic_readValue (JsVar * characteristic );
107
+ JsVar * jswrap_ble_BluetoothRemoteGATTCharacteristic_startNotifications (JsVar * characteristic );
108
+ JsVar * jswrap_ble_BluetoothRemoteGATTCharacteristic_stopNotifications (JsVar * characteristic );
0 commit comments