#ifndef __OCPP16_WEBSOCKET_H__
#define __OCPP16_WEBSOCKET_H__
#include "ocpp16_client.h"

int ocpp16_websocket_client_handshake(ocpp_client_t* dev);

int ocpp16_websocket_client_connect(ocpp_client_t* dev, const char* server_ip, short server_port);

int ocpp16_websocket_send(ocpp_client_t* dev);

int ocpp16_websocket_recv(ocpp_client_t* dev);

int ocpp16_websocket_recv_timeout(ocpp_client_t* dev, int timeout);

void ocpp16_websocket_exit(ocpp_client_t* dev);

#endif//__OCPP16_WEBSOCKET_H__
