Bash client

The Bash client can be used either as a command-line tool or as a library of shell functions in other scripts. The library and the command-line tool are all included in a single file that is located in the Linux SDK in sdk/client/bash/va-client. Type va-client for command-line usage instructions.

If you want to use the functions in your scripts, the best way to do this is to include the va-client script and to call the commands directly as functions:

#!/bin/bash

. $HOME/VisionAppster/sdk/client/bash/va-client

# The address of your Raspberry Pi running VisionAppster Engine
host=192.168.0.123
port=2015
object=/info

va_property_set userDefinedName '"New name"'

Note that both input and output data to the VisionAppster Engine are JSON-encoded by default, and you need to work with raw JSON data. The client makes no conversions for you. Use jq to en/decode JSON messages.