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:esp32:iot_7 [2024/04/14 10:26] – [Further work] ktokarz | en:iot-open:practical:hardware:sut:esp32:iot_7 [2024/05/02 11:11] (current) – [IOT7: BLE Beacon] ktokarz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| This scenario presents how to create the Bluetooth Low Energy beacon device which periodically broadcasts a small amount of information, | This scenario presents how to create the Bluetooth Low Energy beacon device which periodically broadcasts a small amount of information, | ||
| Line 20: | Line 20: | ||
| This scenario is intended to be implemented using two laboratory nodes. One node will work as the beacon device, while the second will receive the beacon' | This scenario is intended to be implemented using two laboratory nodes. One node will work as the beacon device, while the second will receive the beacon' | ||
| ==== Task to be implemented ==== | ==== Task to be implemented ==== | ||
| - | **Task 1** Implement a program that operates as the BLE beacon which advertises itself with the link to the SUT website. This can be done with the Eddystone beacon format. | + | **Task 1** Implement a program that operates as the BLE beacon which advertises itself with the link to the website. This can be done with the Eddystone beacon format. |
| **Task 2** Implement the receiver of advertising frames broadcasted by the beacon device capable of displaying information on the LCD screen. | **Task 2** Implement the receiver of advertising frames broadcasted by the beacon device capable of displaying information on the LCD screen. | ||
| Line 263: | Line 263: | ||
| }; // MyAdvertisedDeviceCallbacks | }; // MyAdvertisedDeviceCallbacks | ||
| </ | </ | ||
| + | Additional filtering of remote devices can be done with their names. We can add in the " | ||
| + | <code c> | ||
| + | String name; | ||
| + | name = advertisedDevice.getName().c_str(); | ||
| + | if (name.equals(" | ||
| + | { | ||
| + | // here the internal code of the MyAdvertisedDeviceCallbacks() | ||
| + | } | ||
| + | </ | ||
| === Step 5 === | === Step 5 === | ||