MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / HandleSerialAPISetupResponse

Method HandleSerialAPISetupResponse

cpp/src/Driver.cpp:2563–2591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2561}
2562
2563void Driver::HandleSerialAPISetupResponse
2564(
2565 uint8* _data
2566)
2567{
2568 // See INS13954 for description of FUNC_ID_SERIAL_API_SETUP with command
2569 // SERIAL_API_SETUP_CMD_TX_STATUS_REPORT
2570 // Note: SERIAL_API_SETUP can do more things than enable this report...
2571
2572 Log::Write( LogLevel_Info, "Received reply to FUNC_ID_SERIAL_API_SETUP");
2573
2574 switch (_data[0])
2575 {
2576 case 1:
2577 Log::Write(LogLevel_Info, "Successfully enabled extended txStatusReport.");
2578 m_hasExtendedTxStatus = true;
2579 break;
2580
2581 case 0:
2582 Log::Write(LogLevel_Info, "Failed to enable extended txStatusReport. Controller might not support it.");
2583 m_hasExtendedTxStatus = false;
2584 break;
2585
2586 default:
2587 Log::Write(LogLevel_Info, "FUNC_ID_SERIAL_API_SETUP returned unknown status: %u", _data[0]);
2588 m_hasExtendedTxStatus = false;
2589 break;
2590 }
2591}
2592
2593//-----------------------------------------------------------------------------
2594// <Driver::HandleGetControllerCapabilitiesResponse>

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected