MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / ManagementGround

Method ManagementGround

OpenHD/ohd_interface/src/wb_link_manager.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150ManagementGround::ManagementGround(std::shared_ptr<WBTxRx> wb_tx_rx)
151 : m_wb_txrx(std::move(wb_tx_rx)) {
152 m_console = openhd::log::create_or_get("wb_mngmt_gnd");
153 auto cb_packet = [this](uint64_t nonce, int wlan_index, const uint8_t *data,
154 const int data_len) {
155 this->on_new_management_packet(data, data_len);
156 };
157 auto mgmt_handler = std::make_shared<WBTxRx::StreamRxHandler>(
158 openhd::MANAGEMENT_RADIO_PORT_AIR_TX, cb_packet, nullptr);
159 m_wb_txrx->rx_register_stream_handler(mgmt_handler);
160}
161
162ManagementGround::~ManagementGround() {
163 m_wb_txrx->rx_unregister_stream_handler(openhd::MANAGEMENT_RADIO_PORT_AIR_TX);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected