Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ocpp_io_value Union Reference

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.

Detailed Description

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

Field Documentation

◆ [struct]

struct { ... } ocpp_io_value::change_avail

ChangeAvailability request from CS.

◆ data

const char* ocpp_io_value::data

Input to user, payload or NULL.

◆ [struct]

struct { ... } ocpp_io_value::data_transfer

DataTransfer request from CS, the strings are valid only during the callback.

◆ id_con

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

◆ idtag

char ocpp_io_value::idtag[50]

Input to user.

◆ mes

enum ocpp_meter_measurand ocpp_io_value::mes

Input to user, measurand.

◆ [struct]

struct { ... } ocpp_io_value::meter_val

◆ msg_id

const char* ocpp_io_value::msg_id

Input to user, message id or NULL.

◆ [struct]

struct { ... } ocpp_io_value::reset

Reset request from CS.

◆ [struct]

struct { ... } ocpp_io_value::start_charge

◆ status

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]

struct { ... } ocpp_io_value::stop_charge

◆ type [1/2]

enum ocpp_availability_type ocpp_io_value::type

Input to user, requested availability.

◆ type [2/2]

enum ocpp_reset_type ocpp_io_value::type

Input to user, reset type requested.

◆ [struct]

struct { ... } ocpp_io_value::unlock_con

◆ val

char ocpp_io_value::val[50]

To be filled by user, value as string.

◆ vendor_id

const char* ocpp_io_value::vendor_id

Input to user, vendor id.


The documentation for this union was generated from the following file: