Dear xuguang shao!
I’ve updated my code with your improvements on Github. Now i am able to print out the error. After calling the following line:
</s>sensorController.ControlMotoDriver(true);<e>
i got this error:
“Sorry…The system cannot find the file specified. Slave address was not acknowledged. Contact us for help”
Otherwise the communication with Azure IoT HUB is working fine - we’ve already managed to establish a connection for other sensors (temp., hum., PIT, …).
What am i doing wrong? Please help.