This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Security.Cryptography.X509Certificates; | |
| using MQTTnet; | |
| using MQTTnet.Client; | |
| const string eventGridUrl = "<resource>.ts.eventgrid.azure.net"; | |
| const string deviceId = "test-device-01"; | |
| const string clientCertFile = "test-device-01.crt"; | |
| const string clientKetFile = "test-device-01.key"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import time | |
| def export_gpio(num): | |
| with open('/sys/class/gpio/export', 'w') as e: | |
| e.write(str(num)) | |
| def unexport_gpio(num): | |
| with open('/sys/class/gpio/unexport', 'w') as e: |
OlderNewer