IoT, Python, Technology, Tech, Programming.
the mostly-self-explanatory code for the server: After connecting CPX to my Raspberry Pi via USB, I fired up this server on Pi via python3 command_sender.py. Next, from my laptop, I sent a cURL GET request to my Pi (via home LAN), as follows: $ curl -XGET http://192.168.0.107:5000/switch/on And yet