Why is my TI CC2652 smart lighting control system unable to read light sensor data?
hey guys am creating a smart lighting control system using a
But am getting the error
i have verified the Thread network configuration and device commissioning, checked the light sensor status and connection, made sure the OpenThread library is correctly installed and configured
here is my code
@Middleware & OS
TI CC2652 with Embedded Linux. The system should read data from a Thread light sensor, I am using the NCP Thread Border Router Software (Model: OpenThread Border Router, Version: 0.3.0).But am getting the error
Error reading light level: Device not foundi have verified the Thread network configuration and device commissioning, checked the light sensor status and connection, made sure the OpenThread library is correctly installed and configured
here is my code
@Middleware & OS
Solution
Thanks @Dark AI it's already been resolved, I updated the code to scan for the correct node and added some initialization checks. Here's the updated version: