Skip to content

StuartEnergy/CPPTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

OCPP WebSocket App

Application

  • Simple app menu (command line app using cin/cout is enough)
  • After app starts it should connect to server using WebSocket
  • If WebSocket connection was successful app should send BootNotification
  • App user should be able to start transaction (StartTransaction)
  • If charge transaction was successful user should be able to stop transaction (StopTransaction)

Requirements

  • Implement using modern C++ features
  • Unit test is not required but is a plus
  • Usage of 3rd party libraries or Linux packages allowed
  • We expect to get a GitHub repository containing application's source code and short instruction in readme.md how to run that application

Additional info

Documentation

Configuration

  • OCPP JSON WebSocket URL - ws://3.125.118.3:8080/steve/websocket/CentralSystemService/(chargeBoxId)
  • chargeBoxId - [public_1, public_2, public_3]

WebSocket headers

  • Sec-WebSocket-Key - not required
  • Sec-WebSocket-Protocol - "ocpp1.6"
  • Sec-WebSocket-Version - "13"

BootNotification properties

  • Use your own

StartTransaction properties

  • connectorId - 1
  • idTag - use random string, generated on app start
  • meterStart - use random number

StopTransaction properties

  • idTag - Same tag as in StartTransaction
  • meterStop - meterStart + some value

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published