How to timesync with MCF88
@Vitor Lima
In this article, we’ll learn how to set up an analysis to do timesync with MCF88 devices.
By following all the steps in this article, you’ll end up with:
- An analysis that will handle timesync for MCF88 devices.
- An action to trigger the analysis when MCF88 devices send payloads.
Setting up the analysis
For this article, we’ll need to setup an analysis to send the timesync for the MCF88 devices.
- Go to your account settings by clicking here: Account Settings (tago.io)
- Then go to your profile.
- Then go to the Tokens tab.
- Create a new token with expire set to Never.
- Copy the new token generated.
- Get the analysis template by clicking here: http://admin.tago.io/template/602d7bfda62d88001ae05e01
- Go to the Environment Variables tab.
- Replace the value for account_token with the token you just copied on sstep 5.
- Press save.
Setting up the action
For this article, we’ll need to setup an action to trigger the analysis when the MCF88 device sends the payload data.
- Go to the Actions button on your account.
- Create a new action.
- Select Type of trigger to Variable
- Select Type of action to Run an Analysis
- Choose your analysis created previously.
- Click create.
- Choose “Multiple Devices”.
- Select the tag key “type” and enter the tag value “MCF88”
- Enter the variable payload for Trigger, and select the condition “Anything”.
- Press save.
You’re done!
Now your devices should start to timesync with the analysis. You can go to the analysis you created and check the console log information to know if everything’s running properly.