I followed the available guidelines to register Raspberry PI to c8y platform
But couldn’t successfully register it. On C8Y platform the device status shows as “WAITING FOR CONNECTION”.
Followed some forums on stackoverflow which suggested that until Raspberry Pi has some sensors attached to it the connectivity won’t activate.
Therefore, attached PIR HC-SR501 sensor to RPI and tested if the GPIO pins are working and I could get the readings successfully through a simple python program.
But to my dismay still the Cumulocity platform didn’t buzz and status stuck to “WAITING FOR CONNECTION”.
Checking system logs on RPI i could see some logs for agent trying to connect but complaining about missing properties file:
Aug 31 21:22:16 raspberrypi root: 21:22:16.540 [main] WARN c8y.lx.agent.PropUtils - Configuration file ./cfg/device.properties cannot be read, assuming empty configuration
Aug 31 21:22:17 raspberrypi root: Unable to open SPI device: No such file or directory
Aug 31 21:22:18 raspberrypi root: Running the Cumulocity Linux Agent…
Need help here, if i am missing any configuration or doing something wrong.