vcx-wrapper

v1.0.0

A Go wrapper for the Vehicle Charging XML (VCX) protocol. Parse, build, sign, and exchange VCX messages between EV charge points and management systems over HTTP.

Go1.22+
MITLicense
260LOC
vcx.go
package vcx

import (
	"crypto/hmac"
	"crypto/sha256"
	"encoding/base64"
	"encoding/xml"
	"fmt"
	"time"
)

// Version identifies this release of the VCX wrapper.
const Version = "1.0.0"

// MessageTyp...

Quick start

go get github.com/pcstyle/vcx-wrapper@v1.0.0

Usage

import "github.com/pcstyle/vcx-wrapper"

client := vcx.NewClient(
  "CP-001",
  "https://example.com",
  secret,
)
session, _ := client.StartSession(1, "rfid-token-abc")