You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!jsvIsInt(handle)) returnBLE_CONN_HANDLE_INVALID;
@@ -492,7 +500,56 @@ Called with discovered services when discovery is finished
492
500
}
493
501
Called with discovered characteristics when discovery is finished
494
502
*/
503
+
/*JSON{
504
+
"type" : "event",
505
+
"class" : "NRF",
506
+
"name" : "phy",
507
+
"params" : [
508
+
["arr","JsVar","An array containing `[tx_phy, rx_phy, status]` (see below)"]
509
+
],
510
+
"#if" : "defined(NRF52_SERIES)"
511
+
}
512
+
(2v28+) This event is fired when the phy (radio) is changed for the active Bluetooth connection. The parameter is the data `[tx_phy, rx_phy, status]`
513
+
514
+
`tx_phy`/`rx_phy` are integers where each bit corresponds to:
515
+
516
+
* 1 : 1mbps phy
517
+
* 2 : 2mbps phy
518
+
* 4 : coded phy
519
+
520
+
`status` is an integer containing the status code. 0 = success
521
+
*/
522
+
/*JSON{
523
+
"type" : "event",
524
+
"class" : "NRF",
525
+
"name" : "phy_req",
526
+
"params" : [
527
+
["arr","JsVar","An array containing `[tx_phy, rx_phy]` (see below)"]
528
+
],
529
+
"#if" : "defined(NRF52_SERIES)"
530
+
}
531
+
(2v28+) This event is fired when the phy (radio) is requested to change for the active Bluetooth connection. The parameter is the data `[tx_phy, rx_phy]`
532
+
533
+
`tx_phy`/`rx_phy` are integers where each bit corresponds to:
495
534
535
+
* 1 : 1mbps phy
536
+
* 2 : 2mbps phy
537
+
* 4 : coded phy
538
+
539
+
eg. `7` means all phys (eg any) have been requested
540
+
*/
541
+
/*JSON{
542
+
"type" : "event",
543
+
"class" : "NRF",
544
+
"name" : "mtu",
545
+
"params" : [
546
+
["arr","int","The negotiated MTU"]
547
+
],
548
+
"#if" : "defined(NRF52_SERIES)"
549
+
}
550
+
(2v28+) This event is fired when the MTU changes for the active Bluetooth connection. Yhis is the amount of
551
+
data that can be transferred in one packet.
552
+
*/
496
553
497
554
/*JSON{
498
555
"type" : "event",
@@ -523,6 +580,56 @@ When NFC is started with `NRF.nfcStart`, this is fired when NFC data is
523
580
received. It doesn't get called if NFC is started with `NRF.nfcURL` or
524
581
`NRF.nfcRaw`
525
582
*/
583
+
/*JSON{
584
+
"type" : "event",
585
+
"class" : "BluetoothDevice",
586
+
"name" : "phy",
587
+
"params" : [
588
+
["arr","JsVar","An array containing `[tx_phy, rx_phy, status]` (see below)"]
589
+
],
590
+
"#if" : "defined(NRF52_SERIES)"
591
+
}
592
+
(2v28+) This event is fired when the phy (radio) is changed for this Bluetooth connection. The parameter is the data `[tx_phy, rx_phy, status]`
593
+
594
+
`tx_phy`/`rx_phy` are integers where each bit corresponds to:
595
+
596
+
* 1 : 1mbps phy
597
+
* 2 : 2mbps phy
598
+
* 4 : coded phy
599
+
600
+
`status` is an integer containing the status code. 0 = success
601
+
*/
602
+
/*JSON{
603
+
"type" : "event",
604
+
"class" : "BluetoothDevice",
605
+
"name" : "phy_req",
606
+
"params" : [
607
+
["arr","JsVar","An array containing `[tx_phy, rx_phy]` (see below)"]
608
+
],
609
+
"#if" : "defined(NRF52_SERIES)"
610
+
}
611
+
(2v28+) This event is fired when the phy (radio) is requested to change for this Bluetooth connection. The parameter is the data `[tx_phy, rx_phy]`
612
+
613
+
`tx_phy`/`rx_phy` are integers where each bit corresponds to:
614
+
615
+
* 1 : 1mbps phy
616
+
* 2 : 2mbps phy
617
+
* 4 : coded phy
618
+
619
+
eg. `7` means all phys (eg any) have been requested
620
+
*/
621
+
/*JSON{
622
+
"type" : "event",
623
+
"class" : "BluetoothDevice",
624
+
"name" : "mtu",
625
+
"params" : [
626
+
["arr","int","The negotiated MTU"]
627
+
],
628
+
"#if" : "defined(NRF52_SERIES)"
629
+
}
630
+
(2v28+) This event is fired when the MTU changes for the active Bluetooth connection. Yhis is the amount of
0 commit comments