tests/wamp/README
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 16 Aug 2018 11:01:54 +0300
changeset 2288 5f59e898b2e4
parent 2194 35d6b9321ffd
child 2289 cf0934b42d66
permissions -rw-r--r--
Make ID in WAMP project match with ID PLC runtime.

See project_files/wampconf.json. ID for runtime is "wamptest". The
same id should be used in project's location URI: WAMP://127.0.0.1:8888#Automation#wamptest
/* This project contains wamp client config to be loaded at runtime startup. */
./project_files/wampconf.json

wampconf.json is in "Project Files", so it is copied to runtime's working directory, and then loaded after program transfer + runtime restart.

Otherwise, wamp config file path can be forced :
./Beremiz_service.py -c /path/to/my/wampconf.json /working/dir

/* Crossbar install */
#sudo apt-get update
#sudo apt-get -y dist-upgrade
sudo apt-get -y install build-essential libssl-dev libffi-dev libreadline-dev libbz2-dev libsqlite3-dev libncurses5-dev
sudo python -m pip install -U pip
sudo pip install crossbar
crossbar version

/* Start Crossbar command: */
crossbar start

/* Crossbar test router configuration is available in .crossbar directory. */
Tested on version:
 Crossbar.io        : 18.3.1 (Crossbar.io COMMUNITY)
   Autobahn         : 18.3.1 (with JSON, MessagePack, CBOR, UBJSON)
   Twisted          : 17.9.0-EPollReactor
   LMDB             : 0.93/lmdb-0.9.18
   Python           : 2.7.12/CPython