Fix Bluetooth Ping
This commit is contained in:
@@ -32,7 +32,7 @@ bool Functions::Ping(const std::string& macAddress)
|
||||
memset(&socketAddress, 0, sizeof(socketAddress));
|
||||
socketAddress.l2_family = AF_BLUETOOTH;
|
||||
|
||||
bdaddr_t bdaddr;
|
||||
bdaddr_t bdaddr({{0, 0, 0, 0, 0, 0}});
|
||||
bacpy(&socketAddress.l2_bdaddr, &bdaddr);
|
||||
|
||||
if (bind(socketDescriptor, reinterpret_cast<struct sockaddr*>(&socketAddress), sizeof(socketAddress)) < 0)
|
||||
|
||||
Reference in New Issue
Block a user