linguini1 opened a new pull request, #3797:
URL: https://github.com/apache/nuttx-apps/pull/3797
## Summary
Fixed a bug in the Nimble example where the GAP name for discovery was
truncated.
Added Kconfig options to allow NuttX users to take full advantage of each
characteristic available under the DIS service.
## Impact
Users can take advantage of the whole DIS service characteristic suite.
The Nimble example appears under the correct name during discovery, and the
example application is now more readable.
## Testing
Changes to the DIS service were tested on an ESP32C3 running a custom
Bluetooth application. The new characteristics are visible on the client device
and take the correct values.
Changes to the Nimble example were tested on an ESP32C3:
```
nsh> ps
TID PID PPID PRI POLICY TYPE NPX STATE EVENT SIGMASK
STACK COMMAND
0 0 0 0 FIFO Kthread - Ready
0000000000000000 0002016 Idle_Task
1 0 0 224 RR Kthread - Waiting Semaphore
0000000000000000 0001960 hpwork 0x3fc8a278 0x3fc8a2d0
2 0 0 100 RR Kthread - Waiting Semaphore
0000000000000000 0001960 lpwork 0x3fc8a200 0x3fc8a258
4 0 0 252 RR Kthread - Waiting Semaphore
0000000000000000 0004008 esp_timer 0x3fc954a0
5 0 0 253 RR Kthread - Waiting Semaphore
0000000000000000 0004032 btController
6 0 0 100 RR Kthread - Waiting MQ empty
0000000000000000 0001984 BT_HCI_Tx
7 7 0 100 RR Task - Running
0000000000000000 0001984 nsh_main
nsh> ifup bnep0
ifup bnep0...OK
nsh> nimble &
nimble [8:100]
nsh> advertise
nsh>
nsh> ps
TID PID PPID PRI POLICY TYPE NPX STATE EVENT SIGMASK
STACK COMMAND
0 0 0 0 FIFO Kthread - Ready
0000000000000000 0002016 Idle_Task
1 0 0 224 RR Kthread - Waiting Semaphore
0000000000000000 0001960 hpwork 0x3fc8a278 0x3fc8a2d0
2 0 0 100 RR Kthread - Waiting Semaphore
0000000000000000 0001960 lpwork 0x3fc8a200 0x3fc8a258
4 0 0 252 RR Kthread - Waiting Semaphore
0000000000000000 0004008 esp_timer 0x3fc954a0
5 0 0 253 RR Kthread - Waiting Semaphore
0000000000000000 0004032 btController
6 0 0 100 RR Kthread - Waiting MQ empty
0000000000000000 0001984 BT_HCI_Tx
7 7 0 100 RR Task - Running
0000000000000000 0001984 nsh_main
8 8 0 100 RR Task - Waiting Signal
0000000000000000 0001992 nimble
9 8 0 100 RR pthread - Waiting Semaphore
0000000000000000 0002016 ble_npl_callout 0x42043bb6 0
10 8 0 100 RR pthread - Waiting Semaphore
0000000000000000 0002016 hci_sock 0x420393e2 0
11 8 0 100 RR pthread - Waiting MQ empty
0000000000000000 0002008 ble_host 0x42039414 0
nsh>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]