We have several mechanisms. The experimental 'Other device - go to sign in sequence', may meet your requirements. We have had problems with devices needing to 'learn' the availability of the other device after a reboot or deploy.
An alternative is MQTT and Javascript. We will write a more comprehensive tutorial but for now here is the code...
- //set the URL of the WebView to this...
- //https://gaztesthost.s3-eu-west-1.amazonaws.com/PahoMQTTLib.html
- //set these variables...
- var g_thisSignName = "TheWalkConnectedDemo - PnL - Scratch";
- var g_mqttServer = "ws://mqtt.signstix.com:8080";
- var g_mqttTopic = "Hyper";
- var g_mqttPayload = '{"majorDimension":[ "1" ]}';
- function onSignAppeared(signName, signId)
- {
- SignStixDebug.info("Sign appeared. signName:" + signName +" signId:" + signId);
- if (signName!=g_thisSignName)
- return;
- var client = mqtt.connect(g_mqttServer);
- client.on('connect', function ()
- {
- SignStixDebug.info("Connected to " + g_mqttServer);
- //client.subscribe(g_mqttTopic);
- //SignStixDebug.info("subscribed to " + g_mqttTopic);
- client.publish(g_mqttTopic, g_mqttPayload);
- SignStixDebug.info("sent: " + g_mqttPayload + " to topic:" + g_mqttTopic);
- });
- //client.on("message", function (topic, payload)
- // {
- //
- // SignStixDebug.info("received MQTT. topic:" + topic +" payload:" + payload);
- //
- //this is closing the client connection
- //client.end();
- //
- // });
- }
- SignStixNotify.notifyOnSignAppeared("onSignAppeared");