However, it would be nice to validate that the server correctly started and that a connection was achieved. This could be don't by implementing some sort of handshake logic:
1 - Launch the Emmpatica Server and wait for it to start (10 seconds should be safe)
Once it starts, send a device_discover_list command and print the output to console to list all devices. If no message is received without a timeout period, crash the workflow since this will likely mean the a connection was not successfully established.
3 - Once successfully established, send the remaining stream-enabling messages
Some additional notes:
Externalize the empatica device name (currently hardcoded)
We have successfully implemented and tested #10.
However, it would be nice to validate that the server correctly started and that a connection was achieved. This could be don't by implementing some sort of handshake logic:
1 - Launch the
Emmpatica Server
and wait for it to start (10 seconds should be safe)device_discover_list
command and print the output to console to list all devices. If no message is received without a timeout period, crash the workflow since this will likely mean the a connection was not successfully established. 3 - Once successfully established, send the remaining stream-enabling messagesSome additional notes: