Skip to content

Base Raspberry Pi Node

Choose a tag to compare

@AfonsoBatista7 AfonsoBatista7 released this 25 Jun 09:42
· 30 commits to main since this release
c17bf76

Raspberry node, is the node that will be running on the raspberry pi and communicating with Objects

Already implemented the go code that instead of receiving string messages from other peers, its prepared to receive an id and a state, IoTid:state Ex. "2j3hg4kjb:1"

This will change the state to 1 of the object with id 2j3hg4kjb, if the object does not have that state already (I'm not checking the object Id yet)

The handling of the events were done on C# code, each Manager class will have the method to handle their part of the system (P2pManager -> Virtual, GpioManager -> Physical)

Also did a dockerfile to build a container that would compile and run the p2p node... but it was difficult to get access to the raspberrypi Gpio, so for now I am compiling using an .sh file and then running on the host device (raspberrypi)