RDDL Network
  • 👋Welcome to RDDL
    • 💡What we do
    • ✨Our Features
  • Basics
    • ✅Understanding RDDL
    • 🎭Actors
    • ⛓️Networks
    • 🪙Tokens
      • RDDL on Liquid
      • Conversion Rate
    • 🎆Types of Nodes
      • 👛Wallet Management
      • 🔐Key Ceremony
    • 🤝Token Services
      • Machine Identity Attestation
      • RDDL Purpose Tokens
      • Wrapped Tokens
      • CID Asset Notarization
    • 🏁Proof of Productivity
      • 👩‍🎤Actor Selection
      • ⁉️Challenge-Response
      • 💰Rewards
        • 🔢Reward Calculation
        • ⌚Clearance Process
        • 🪙Claiming Rewards
    • 🤝Reissuance & Distribution
  • Getting Started
    • ❓How can I participate?
    • ⚡The EnergyAgent
      • ▶️Installation
    • ⚓Trust Wallet
    • SMD (Smart Metering Device)
  • Workflows & Governance
    • Converting RDDL to PLMNT
    • Voting on chain parameters
  • ⚒️Infrastructure
    • 🧁Services
Powered by GitBook
On this page
  • Get to know your machine
  • Setting PlanetmintAPI & Chain-ID
  • Create an account for your machine on the chain
  • Setting up MQTT for Participating in PoPs
  • Troubleshooting
  1. Getting Started
  2. Getting Connected

Configure your Hardware as a Tasmota Node

This tutorial configures the Node to connect to the RDDL Testnet.

Last updated 8 months ago

The nodes come with firmware from and are compatible with .

Initially, you have to

  • Search for the Tasmota nodes' wifi hotspot

  • Connect to it

  • Configure your wifi (the node IP on your local network should be displayed so that the last step can be ignored)

  • Reconnect on your local wifi so you can use the node with internet connectivity.

  • Identify the local IP of your Tasmota node and connect to it (e.g. using Nmap to search for IP addresses or look it up on your router/switch)

Having that, you can connect to the node by browsing the IP address with HTTP.

Get to know your machine

Follow the menu to Consoles→Console.

Enter the command Mnemonic and store the mnemonic to recover your funds and chain interaction identities later.

Enter the command PublicKeys to get to know your addresses and keys.

Setting PlanetmintAPI & Chain-ID

Ensure that you also define the denomination, notarization periodicity, and the ChainID:

  • PlanetmintDenom plmnt Declares the token denomination used on the chain (Testnet).

  • PlanetmintChainID planetmint-testnet-1 or PlanetmintChainID planetmint-mainnet-1 Declares the ChainID of the Testnet/Mainnet.

  • NotarizationPeriodicity 3600 Defines the notarization frequency in seconds. 3600 = 60*60 seconds and lets the device notarize once an hour.

The above three configuration steps are important for firmware upgrades. The default values are set when flashing a new firmware. The parameters must be set explicitly in case of firmware upgrades.

Create an account for your machine on the chain

Next, you need to create the machine account's chain. This is necessary so the machine attests to the chain, which uses 1 PLMNT. After your machine is attested and activated, it will receive 8800 PLMNTs, enough to notarize data for a year if the notarization periodicity is set to 1 hour.

You can achieve this in the following ways:

  1. Testnet only: Fund the machine address by sending PLMNT tokens to the address (e.g., plmnt10addjzn66e0u9kfy4ku307zjd0z3dyqd45gjh7)

  2. Issue the following command on Tasmota (or https://testnet-ta.rddl.io on testnet) CreateAccount https://ta.rddl.io

  3. Send a request create-account to the Trust Anchor Registration Service like :

 curl -X POST -H "Content-Type: application/json" -d "{\"machine-id\":\"03a0aa69aaf9e4817c02b3d2b649efa76a8fe52013a43f933c65df9c3a4400040c\", \"plmnt-address\":\"plmnt10addjzn66e0u9kfy4ku307zjd0z3dyqd45gjh7\", \"signature\":\"0f254d93269468f5c0269430252aca8fa43af7a7095b07f26b4187e8abd747306803be9b1f1eee9bfb8347de279aa3b8fa8975c5c9b8faea80ff00cfa7ac8989\"}" https://testnet-ta.rddl.io/create-account

The Balance of the account can be inspected via the Balance command.

The Testnet Explorer can also be used to inspect the funds of the account

Restart your node once.

The Tasmota can now create, sign and broadcast transactions to the Planetmint Testnet. Please attest your machine now with the following command:

AttestMachine <machine type like fridge> <machine manufacturer like DIY Inc> <CID with additional information>

After a successful attestation, the device will start notarizing consumption/production data. It does so every 60 minutes (3600 seconds) or if you execute the Notarize command. Machine attestation is performed automatically and can be witnessed by looking at the explorer.

Be aware: Each transaction will consume 1 PLMNT token.

Setting up MQTT for Participating in PoPs

For Client and Topic set your machine's address.

Troubleshooting

Not finding your device on the network:

Unable to connect to the MQTT service - connection error 62

  • The Tasmota version rddl-v0.43.0 and below do not recognize the newest Let's Encrypt root certificates and drop the TLS connection because of an untrusted CA. Executing the following command on the command line setoption132 1 will enable certificate verification but disable the AWS IoT and Let's Encrypt certificate check. This will solve the issue as the certificates are valid, and the connection will again work as expected.

Enter the command PlanetmintAPI to set the URL to connect to the planetmint blockchain API. is set as the default value. If you want you node to interact with the mainnet set it to

Testnet only: Alternatively, if you are on the testnet, you can go to the Testnet Faucet and fund your address (e.g. plmnt1xjfmfeuu533h40sz0jcjkc5727ph3cy8r0d4ma)

The resulting transaction can be inspected on your account page on the .

Go to Configuration -> Configure MQTT and set the credentials provided .

Depending on the network you are using set the following host and port found and tick the checkbox for MQTT TLS.

If you cannot fund your account (i.e.: via ta(-testnet).rddl.io/create-account Or funding your account manually). Check if your machine address exists on the correct network under the following link: or If not, you probably downloaded firmware for the wrong network, as your firmware will be attested for either the testnet or mainnet. Check the links posted .

🥂
🛠️
https://testnet-api.rddl.io/
https://api.rddl.io/
https://testnet-faucet.rddl.io/
https://testnet-explorer.rddl.io/planetmint/accounts/plmnt1xjfmfeuu533h40sz0jcjkc5727ph3cy8r0d4ma
Testnet Explorer
here
here
https://testnet-api.rddl.io/#/Query/PlanetmintgoMachineGetMachineByAddress
https://api.rddl.io/#/Query/PlanetmintgoMachineGetMachineByAddress
here
https://github.com/rddl-network/Tasmota
https://github.com/planetmint/planetmint-go