#include <iostream>
#include BluetoothServer.h"
int main() {
// Create a BluetoothServer instance with your desired device alias
BluetoothServer server;
server.registerAgent();
server.setAlias("MyIoTDeviceTreatmo");
server.powerOnAdapter();
server.makeDiscoverable();
server.makePairable();
server.startAdvertising();
// Initialize the GLib main loop
GMainLoop* loop = g_main_loop_new(NULL, FALSE);
// Start the main loop
g_main_loop_run(loop);
// Cleanup the main loop when the application exits
g_main_loop_unref(loop);
return 0;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
zlberto/BluetoothServer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published