Skip to content

Instantly share code, notes, and snippets.

@moonmile
moonmile / ContactTracingAppFinder.ino
Last active August 17, 2020 03:04 — forked from ksasao/ContactTracingAppFinder.ino
接触確認アプリが有効になっているかを調べるアプリの M5Stack 版です。取得した ServiceData(RPI)を表示させています。https://twitter.com/ksasao/status/1274385507565178885 参照。Apache 2.0ライセンスです。
#include <M5Stack.h>
#include <BLEDevice.h>
// Contact Tracing Bluetooth Specification (Apple/Google)
// https://blog.google/documents/58/Contact_Tracing_-_Bluetooth_Specification_v1.1_RYGZbKW.pdf
const char* uuid = "0000fd6f-0000-1000-8000-00805f9b34fb";
unsigned int count = 0;
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {