Skip to content

Commit

Permalink
File transfer support server and test client.
Browse files Browse the repository at this point in the history
Signed-off-by: Ulf Bjorkengren <[email protected]>
  • Loading branch information
UlfBj committed Nov 11, 2024
1 parent aedfeae commit 3713266
Show file tree
Hide file tree
Showing 18 changed files with 1,036 additions and 46 deletions.
7 changes: 4 additions & 3 deletions client/client-1.0/Javascript/appclient_commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ Get request with AT token (XXX must be replaced with actual token):
{"action":"get","path":"Vehicle.Body.Bodyvariant","authorization":"XXX","requestId":"243"}

Metadata request:
{"action":"get","path":"Vehicle/ADAS/ABS","filter":{"variant":"metadata","parameter":""},"requestId":"244"}
{"action":"get","path":"Vehicle.ADAS.ABS","filter":{"variant":"metadata","parameter":"0"},"requestId":"244"}
{"action":"get","path":"Server","filter":{"variant":"metadata","parameter":"0"},"requestId":"245"}

Set request:
{"action":"set", "path":"Vehicle/Cabin/Door/Row1/PassengerSide/IsOpen", "value":"999", "requestId":"245"}
{"action":"set", "path":"Vehicle/Cabin/Door/Row1/PassengerSide/IsOpen", "value":"true", "requestId":"245"}

Subscribe request:
{"action":"subscribe","path":"Vehicle/Cabin/Door/Row1/PassengerSide/IsOpen","filter":{"variant":"timebased","parameter":{"period":"3000"}},"requestId":"246"}
Expand Down Expand Up @@ -68,7 +69,7 @@ Payload: 0.123

Service discovery request:
HTTP GET
URL: Vehicle/ADAS/ABS?filter={"variant":"metadata", "parameter":""}
URL: Vehicle/ADAS/ABS?filter={"variant":"metadata", "parameter":"0"}

// ********* Access control testing *************
// requires that a binary VSS file has been generated with "validate" tags added into vspec file(s) for the requested signals.
Expand Down
1 change: 1 addition & 0 deletions client/client-1.0/filetransfer_client/dlFile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a 387 characters long textfile. Mary had a little lamb| His fleece was white as snow, yeah| And everywhere the child went| That little lamb was sure to go, yeah| He followed her to school one day| And broke the teacher's rule| But what a time did they have| That day at school| Tisket! Tasket! Baby| A green and yellow basket| Sent a letter to my baby| And on my way I passed it.
Loading

0 comments on commit 3713266

Please sign in to comment.