How can I send data to docker

0 votes

I have the following problem. I want to send data continuing to the smart contract (chaincode) using Hyperledger Fabric. The data are temperature values measured by different pi's. They send the measured data to the chaincode. The problem I'm facing is the fact that the pi's are sending data continuing, means they send it like every second to the chaincode. The temperature sensors use local binaries, which are not part of the docker repository. My solution is to send local data to the docker network. But I have no idea how. Does anyone have a better solution or just know how to send local data to the docker network? I would appreciate any kind of help.

Nov 16, 2018 in Blockchain by Perry
• 17,100 points
585 views

1 answer to this question.

0 votes

Whenever i invoke chaincode from the cli i use docker exec -it <container name> bash

an example being

docker exec -it cli peer chaincode invoke -o orderer2.example.com:7050 -n mycc -c '{"Args":["set", "a", "20"]}' -C mychannel
answered Nov 17, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

How can I take the required info and send it to a div in the html page?

window.onload=function(){ var anima = document.getElementById("crypto"); var ret = document.getElementById("btn"); ret.addEventListener("click",function(){ var ...READ MORE

answered Sep 6, 2018 in Blockchain by digger
• 26,740 points
752 views
+1 vote
2 answers

Can I include real world data in a smart contract? If so, how?

You cant access/embed real world data using ...READ MORE

answered Jul 18, 2018 in Blockchain by sapan
1,165 views
+1 vote
1 answer

Hyperledger - How can I use transaction certificates to enforce privacy?

The transaction certificates don't actually address privacy ...READ MORE

answered Apr 17, 2018 in Blockchain by Perry
• 17,100 points
905 views
+2 votes
1 answer
0 votes
3 answers
0 votes
1 answer
+1 vote
1 answer

How can I modify stored data in blockchain??

One of the important feature of a ...READ MORE

answered Apr 18, 2018 in Blockchain by Christine
• 15,790 points
6,128 views
+1 vote
1 answer

How can I connect to the specified nodes using IPFS?

You can actually connect to the specific ...READ MORE

answered Apr 25, 2018 in Blockchain by Christine
• 15,790 points
2,008 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP