|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
OCPP user callback notification/request of input/output values union member should be accessed with enum value ocpp_notify_reason correspondingly. More...
#include <zephyr/net/ocpp.h>
Data Fields | |
| struct { | |
| int id_con | |
| Input to user, requested connector_id or 0 - main meter. More... | |
| enum ocpp_meter_measurand mes | |
| Input to user, measurand. More... | |
| char val [50] | |
| To be filled by user, value as string. More... | |
| } | meter_val |
| struct { | |
| char idtag [50] | |
| Input to user. More... | |
| int id_con | |
| Input to user(optional). More... | |
| } | start_charge |
| struct { | |
| int id_con | |
| Input to user, to stop charging connector. More... | |
| } | stop_charge |
| struct { | |
| int id_con | |
| Input to user, to unlock connector id. More... | |
| } | unlock_con |
| struct { | |
| enum ocpp_reset_type type | |
| Input to user, reset type requested. More... | |
| enum ocpp_req_status status | |
| To be filled by user, reply status. More... | |
| } | reset |
| Reset request from CS. | |
| struct { | |
| int id_con | |
| Input to user, connector id (0 = whole CP). More... | |
| enum ocpp_availability_type type | |
| Input to user, requested availability. More... | |
| enum ocpp_req_status status | |
| To be filled by user, reply status. More... | |
| } | change_avail |
| ChangeAvailability request from CS. | |
| struct { | |
| const char * vendor_id | |
| Input to user, vendor id. More... | |
| const char * msg_id | |
| Input to user, message id or NULL. More... | |
| const char * data | |
| Input to user, payload or NULL. More... | |
| enum ocpp_req_status status | |
| To be filled by user, reply status, UnknownVendorId on callback error. More... | |
| } | data_transfer |
| DataTransfer request from CS, the strings are valid only during the callback. | |
OCPP user callback notification/request of input/output values union member should be accessed with enum value ocpp_notify_reason correspondingly.
e.g. callback reason is OCPP_USR_GET_METER_VALUE, struct meter_val is valid
| struct { ... } ocpp_io_value::change_avail |
ChangeAvailability request from CS.
| const char* ocpp_io_value::data |
Input to user, payload or NULL.
| struct { ... } ocpp_io_value::data_transfer |
DataTransfer request from CS, the strings are valid only during the callback.
| int ocpp_io_value::id_con |
Input to user, requested connector_id or 0 - main meter.
Input to user, connector id (0 = whole CP).
Input to user, to unlock connector id.
Input to user, to stop charging connector.
Input to user(optional).
connector id -1 means invalid
| char ocpp_io_value::idtag[50] |
Input to user.
| enum ocpp_meter_measurand ocpp_io_value::mes |
Input to user, measurand.
| struct { ... } ocpp_io_value::meter_val |
| const char* ocpp_io_value::msg_id |
Input to user, message id or NULL.
| struct { ... } ocpp_io_value::reset |
Reset request from CS.
| struct { ... } ocpp_io_value::start_charge |
| enum ocpp_req_status ocpp_io_value::status |
To be filled by user, reply status.
To be filled by user, reply status, UnknownVendorId on callback error.
| struct { ... } ocpp_io_value::stop_charge |
| enum ocpp_availability_type ocpp_io_value::type |
Input to user, requested availability.
| enum ocpp_reset_type ocpp_io_value::type |
Input to user, reset type requested.
| struct { ... } ocpp_io_value::unlock_con |
| char ocpp_io_value::val[50] |
To be filled by user, value as string.
| const char* ocpp_io_value::vendor_id |
Input to user, vendor id.