This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:practical:hardware:sut:stm32:iot_5 [2024/05/04 08:34] – [Start] ktokarz | en:iot-open:practical:hardware:sut:stm32:iot_5 [2024/05/04 08:41] (current) – [Steps] ktokarz | ||
|---|---|---|---|
| Line 206: | Line 206: | ||
| if (peripheral) { | if (peripheral) { | ||
| lcd.clear(); | lcd.clear(); | ||
| - | if (peripheral.localName() == "SUT BLE device") { | + | if (peripheral.localName() == "STM32 Beacon") { |
| // display remote name | // display remote name | ||
| Line 216: | Line 216: | ||
| lcd.print(REMOTE_SERVICE_UUID); | lcd.print(REMOTE_SERVICE_UUID); | ||
| } | } | ||
| - | } | ||
| - | else // restart scanning | ||
| - | { | ||
| - | int ret = 1; | ||
| - | do | ||
| - | { | ||
| - | ret = BLE.scanForUuid(REMOTE_SERVICE_UUID); | ||
| - | if (ret == 0) | ||
| - | { | ||
| - | BLE.end(); | ||
| - | BLE.begin(); | ||
| - | } | ||
| - | } while(ret == 0); | ||
| } | } | ||
| } | } | ||