How long does a Sensor Connection take to "spin up"

How long does a Sensor Connection take to "spin up"

JM_K
Advocate Advocate
353 Views
3 Replies
Message 1 of 4

How long does a Sensor Connection take to "spin up"

JM_K
Advocate
Advocate

Hi,

 

I'm currently setting up some sensors and adding into my Tandem Facilities. I am using ACC Connect to automatically push the payload from my MQTT broker into the Facilities.

There is an issue that I'm having when trying to create and connect a new sensor / stream into my Facilities.

 

I have tried creating the stream first, then configuring the sensor to push MQTT to the broker after that. I've also tried the reverse order by adding the sensor in the Facility and then created the sensor in the facility after this.

In both instances I am struggling to get the ACC Connect recipe to "see" the new connection and I am having issues configuring the stream since the payloads aren't appearing in the facility.

I've tried deleting the stream, remaking and then resetting the stream secrets to see if that works but that doesn't seem to fix it.

In the end i did a manual POST to the stream secret and after configuring the stream from the "dummy" sensor payload it eventually starts working in ACC Connect but only after a few repeated creation / deletions of the streams.

 

The process seems a bit convoluted so I'm hoping there is something I'm missing here. Can someone illustrate the best order in which to add the sensor / configure the stream? Does anyone know from experience how long the streams normally take to "stand-up" in the background? Perhaps I just need to be patient and let the processing happen for a period of time?

 

Thanks, Mark

Insert witty comment here.
0 Likes
Accepted solutions (1)
354 Views
3 Replies
Replies (3)
Message 2 of 4

jan.liska
Autodesk
Autodesk

Hello, how do you create streams? Are you using Tandem application or API?
Here is approach which I use and works fine:

1. Create one stream to test the connection

2. Send sample payload using Postman or similar tool

3. Use Configure Connections command to define mapping between input payload and stream parameters. Note this mapping is applied globally to all streams in the facility - but if needed you can apply override per stream.

4. Create streams as needed

5. Send data to streams

There is no delay - when the stream is created it has automatically secret assigned (no need to reset it) and is ready to receive data. It's important to have mapping defined (step 3 above).
In case when you use API there is multiple steps involved but UI does everything in one step.


Jan Liska
Developer Advocate, Autodesk Tandem

0 Likes
Message 3 of 4

JM_K
Advocate
Advocate
Accepted solution

Jan,


Thanks for that. I am feeding real sensor data via MQTT into a broker that is then creating a webhook in my ACC Connect recipe.

I ended up using the same process in the end. I was hoping to bypass the Postman step but sometimes it looks like this is going to be necessary.

 

Mark

Insert witty comment here.
0 Likes
Message 4 of 4

jan.liska
Autodesk
Autodesk

Technically you can skip it and configure mapping without it - you can enter field names manually. I prefer to do it because I can see the payload and I can test it. But it can be one time task - you can do it for one connection only.


Jan Liska
Developer Advocate, Autodesk Tandem

0 Likes