1

I went through almost all the answers on IOT but not got the answer.

I want to create a DAPP which takes temp as input from IOT device and trigger function in the smart contract. I know the options like to take input in fronend and using web3js to direct it to Smart Contract and Cloud services like Azure. Other than these options.

What are the possible ways to achieve this scenario? Any help is much appreciated. --edit-- Other than Oraclize or chainlink.

2 Answers 2

2

You need to create Oracles to get data from the sensors to the smart contract.

Oracles are trusted data feeds that send information into the Smart Contract, removing the need for Smart Contracts to directly access information outside their network, thus lightening their workload. Oracles are usually supplied by third parties and are authorized by the companies that use them.

2
  • Thanks for the answer. I was hoping are there any other way otherthan oraclize or chainlink? Commented Sep 7, 2018 at 11:02
  • 1
    You will have to choose either centralized (Oracles) or decentralized Oracle(Chainlink). Otherwise, you need to enter input manually. I dont think there is any other possible way to feed sensor's data in smart contract. Commented Sep 7, 2018 at 11:15
0

Another solution will be to let your device push changes directly to a contract.

For example if you have a temperature sensor then every temperature change will be written to a contract on the blockchain.

If your dapp want to use the temperature it will read direclty from the sensor contract.

2
  • Can you please tell which solution you are referring? and about sensor contract how to give direct input in contract? Can you please explain or share the resource? Commented Sep 10, 2018 at 4:06
  • Something similar to this ethereum.stackexchange.com/a/45123
    – Ismael
    Commented Sep 10, 2018 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.