I’ve made, committed, and pushed, a couple of (hard to find but easy to fix) changes to OVMS Server v3.



With these changes made, all my tests of websocket clients (and apps) are complete and pass. Hopefully this should be stable to use in production now. It is certainly very easy to use.

Car:

$ websocat -E wss://<server>:6870/apiv2
MP-C 1 <user> <password> <vehicleid>
MP-S 1 <user> <vehicleid-list>
Z0
Z1
C7,stat
c7,1,all ok
Z0

App:

$ websocat -E wss://<server>:6870/apiv2
MP-A 1 <user> <password> <vehicleid>
MP-S 1 <user> <vehicleid-list>
Z1
F1.5.0,VIN123456789012345,5,1,TRDM,
S80,K,220,13,charging,standard,282,253,13,18,0,0,5,1,0,0,0,1
D124,8,4,10,20,5,0,9930,50,0,0,0,1,1,12.0,0
L22.337297,114.187969,90,0,1,1
W29,2,40,6,29,2,40,6,1
T15
C7,stat
c7,1,all ok

This new code is running at api.openvehicles.com already, and I recommend anyone running their own server to upgrade if they need websocket (or new unified app) support.

Regards, Mark.