å¸è²©ããã¦ãã IoT æ©å¨ã¯ã ãã¤ãµã¼ãã¹çµäºãã¦ãã¾ã (ã¯ã©ã¦ããµã¼ãåæ¢ã§ä½¿ããªããªã) ããç¥ããã ãã®ãã³ã« API ã解æããã®ã¯ç¾å®çã§ã¯ãªããªãã¨æã£ã¦ããã¨ããã MicroPython (æ¥æ¬èª) ã使ãã°æ軽㫠IoT æ©å¨ãèªä½ã§ãããã¨ã«æ°ä»ããã ä¾ãã°é¨å±ã®æããã Wi-Fi çµç±ã§ãµã¼ãã¸éç¥ããç §åº¦ã»ã³ãµã¯ã ãããªæãã§æ¸ãã: import machine import socket import network_cfg pwr = machine.Pin(15, machine.Pin.OUT) pwr.value(1) def webhook(v): addr = socket.getaddrinfo('gt.gcd.org', 12345)[0][-1] s = socket.socket() s.connect(addr) s.send
{{#tags}}- {{label}}
{{/tags}}