Skip to main content

Triple Accelerometer Template

We provide a built-in template for Triple Accelerometer (Arduino UNO R4 WIFI). Use this template for quick setup instead of manual configuration.

  1. Click "Add device" in the top right corner, then select "Template" from the dropdown menu. In the popup form, select the template for your device.

    image.png

  2. If you don't have a LwM2M server, you can use LeShan server demo as your LwM2M server. If you already have a LwM2M server, skip this step.

    Visit Leshan server to get a demo LwM2M server address.

    image.png

  3. Click "SECURITY" in the top right corner, then set encryption mode to DTLS, security mode to PSK, and configure Identity and Key fields to match server settings.

    image.png

  4. In Gateway configuration form, enter LwM2M server address and endpoint name (must match LeShan server settings). Example:

    Server address: leshan.eclipseproject.io:5684
    Endpoint name: triple-accelerometer

    image.png

  5. In Gateway configuration form, configure LwM2M security settings (must match LeShan server). Example:

    Security mode: DTLS
    DTLS mode: PSK
    PSK identity: triple-accelerometer
    PSK key: 123ABC

    image.png

  6. Enter the name of the device, and the name will be used to connect the device in the cluster. The device name follows RFC 1123 label name convention.

    image.png

  7. If you don't have your own MQTT broker, use HIVE MQ Public Broker. Skip this step if you already have your own MQTT broker.

    image.png

  8. Enter the MQTT broker address and subscription topics in the Environment configuration form.

    image.png

  9. Click on "Deploy" button, and the device will be added into your workspace. Copy and paste the command from the pop-up to deploy the device into your Kubernetes cluster.

    image.png

    image.png

  10. View device deployment status in the cluster through kubectl get po - n deviceshifu. image.png

  11. Connect your MQTT client to the broker.

    image.png

  12. Publish messages to the MQTT topic that you specified when adding the device in Shifu Cloud.

    image.png

  13. Verify message reception in the LwM2M server interface.

    image.png