How to timesync with MCF88

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.

  1. Go to your account settings by clicking here: Account Settings (tago.io)
  2. Then go to your profile.
  3. Then go to the Tokens tab.
  4. Create a new token with expire set to Never.
  5. Copy the new token generated.
  6. Get the analysis template by clicking here: http://admin.tago.io/template/602d7bfda62d88001ae05e01
  7. Go to the Environment Variables tab.
  8. Replace the value for account_token with the token you just copied on sstep 5.
  9. 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.

  1. Go to the Actions button on your account.
  2. Create a new action.
  3. Select Type of trigger to Variable
  4. Select Type of action to Run an Analysis
  5. Choose your analysis created previously.
  6. Click create.
  7. Choose “Multiple Devices”.
  8. Select the tag key “type” and enter the tag value “MCF88”
  9. Enter the variable payload for Trigger, and select the condition “Anything”.
  10. 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.