KRITSADA

Line Notify

Jul 31st, 2022 (edited)
2,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <TridentTD_LineNotify.h>
  2. #define SSID        “xxxxx"    
  3. #define PASSWORD    “xxxx"
  4. #define LINE_TOKEN      “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  5. void setup() {
  6.   Serial.begin(115200); Serial.println();
  7.   WiFi.begin(SSID, PASSWORD);
  8.   while (WiFi.status() != WL_CONNECTED) {
  9.     Serial.print(".");
  10.     delay(400);
  11.   }
  12.   Serial.printf("\nWiFi connected\nIP : ");
  13.   Serial.println(WiFi.localIP());
  14.   LINE.setToken(LINE_TOKEN);
  15.   LINE.notify("ทดสอบส่งข้อความ");
  16. }
  17. void loop() {  delay(1); }
  18.  
  19.  
  20. /*
  21.  
  22. https://github.com/arnon2020/LINENotify/blob/master/sticker_list.pdf
  23.  
  24. */
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment