Skip to content

Commit

Permalink
minor error output change
Browse files Browse the repository at this point in the history
  • Loading branch information
William C Bonner committed Dec 20, 2024
1 parent 567d69e commit 2659bbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif()
add_compile_definitions(_BLUEZ_HCI_)

project (GoveeBTTempLogger
VERSION 3.20241218.0
VERSION 3.20241219.0
DESCRIPTION "Listen and log Govee Thermometer Bluetooth Low Energy Advertisments via BlueZ and DBus"
HOMEPAGE_URL https://github.com/wcbonner/GoveeBTTempLogger
)
Expand Down
4 changes: 2 additions & 2 deletions goveebttemplogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2518,13 +2518,13 @@ time_t ConnectAndDownload(int BlueToothDevice_Handle, const bdaddr_t GoveeBTAddr
if (connect(l2cap_socket, (struct sockaddr*)&dstaddr, sizeof(dstaddr)) < 0)
{
if (ConsoleVerbosity > 0)
std::cout << "[" << getTimeISO8601(true) << "] [" << ba2string(GoveeBTAddress) << "] Failed to connect: " << strerror(errno) << " (" << errno << ")" << std::endl;
std::cout << "[" << getTimeISO8601(true) << "] [" << ba2string(GoveeBTAddress) << "] Failed to connect: " << strerror(errno) << " (" << errno << ")" << (bRandomAddress ? " BDADDR_LE_RANDOM" : " BDADDR_LE_PUBLIC") << std::endl;
close(l2cap_socket);
}
else
{
if (ConsoleVerbosity > 0)
std::cout << "[" << getTimeISO8601(true) << "] [" << ba2string(GoveeBTAddress) << "] Connected L2CAP LE connection on ATT channel: " << ATT_CID << std::endl;
std::cout << "[" << getTimeISO8601(true) << "] [" << ba2string(GoveeBTAddress) << "] Connected L2CAP LE connection on ATT channel: " << ATT_CID << (bRandomAddress ? " BDADDR_LE_RANDOM" : " BDADDR_LE_PUBLIC") << std::endl;

unsigned char buf[HCI_MAX_EVENT_SIZE] = { 0 };
std::vector<BlueToothService> BTServices;
Expand Down

0 comments on commit 2659bbf

Please sign in to comment.