File espos_n2k_api.h¶
File List > espos_n2k > include > espos_n2k_api.h
Go to the documentation of this file
/*
* SPDX-FileCopyrightText: 2026 Dirk Wahrheit
* SPDX-License-Identifier: Apache-2.0
*
* espos_n2k's REST surface: GET /api/v1/n2k, the CAN bus's own diagnostics.
*
* C, and takes a void *, so a plain-C application can register the endpoint
* without the C++ receiver type crossing the ABI (docs/development.md,
* "Public API rules"). Pass the TwaiReceiver.
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
esp_err_t espos_n2k_api_register(const void* receiver);
#ifdef __cplusplus
}
#endif