Skip to content

Commit

Permalink
add one test case
Browse files Browse the repository at this point in the history
  • Loading branch information
aliml92 committed Nov 6, 2022
1 parent acd4a2d commit 507b68c
Show file tree
Hide file tree
Showing 11 changed files with 435 additions and 565 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,17 @@ func main()
// start csms server with default configurations
csms = ocpp.NewServer()



csms.AddSubProtocol("ocpp1.6")
csms.SetCheckOriginHandler(func(r *http.Request) bool { return true })
csms.SetPreUpgradeHandler(customPreUpgradeHandler)
csms.SetCallQueueSize(32)


// register charge-point-initiated action handlers
csms.On("BootNotification", BootNotificationHandler)
csms.After("BootNotification", SendChangeConfigration)
csms.On("Authorize", AuthorizationHandler)
csms.On("Authorize", AuthorizationHandler)
csms.Start("0.0.0.0:8999", "/ws/", nil)


}

func SendChangeConfigration(cp *ocpp.ChargePoint, payload ocpp.Payload) {
Expand Down
Loading

0 comments on commit 507b68c

Please sign in to comment.