beremiz

6b4e1452fa16
IDE/CLI: cleaner implementation of actions To Do Before Quit
/* This project contains wamp client config to be loaded at runtime startup. */
./project_files/wampconf.json
Note :
wampconf.json is in "Project Files", so it is copied to runtime's working
directory, and then loaded after program transfer + runtime restart.
/* Use pip and python virtual env to obtain crossbar */
/* Crossbar test router configuration is available in .crossbar directory. */
/* Start Crossbar command: (directly in project directory)*/
crossbar start
/* Start runtime */
# steal config and PSK from config to start runtime directly with them
cp ${BEREMIZ_DIR}/tests/projects/wamp/project_files/wampconf.json ${RUNTIME_CONF_DIR}/wampconf.json
cp ${BEREMIZ_DIR}/tests/projects/wamp/psk/test_service_name.psk ${RUNTIME_KEYSTORE}/psk.txt
# launch runtime pointing to confif ans PSK
python ${BEREMIZ_DIR}/Beremiz_service.py -c ${RUNTIME_CONF_DIR}/wampconf.json -s ${RUNTIME_KEYSTORE}/psk.txt -n test_service_name ${PLC_WORKING_DIR}