ไม่ทราบว่าถ้าจะเขียนโค้ดแจ้งเตือนผ่านไลน์โดยใช้บอร์ดตัวArduino โดยแจ้งอุณหภูมิยังไงครับ
ต้องถามว่า arduino รุ่นไหน
arduino uno wifi rev2 ของเพื่อนครับ ใช้ ไลบารี่WiFiNINA
1 Likes
ลองทำตามตัวอย่างนี้ดูครับ น่าจะได้นะ
มันเลือกบอร์ดในลิสได้ใช่ไหม แล้วโค้ตเป็นยังไงเอามาดูด้วยครับ
คนเดียวกันรึป่าวครับเนี้ย @CeroZero_Nightcore roZero
อันนั้นเพื่อนผมครับ
ถามโปรเจคเดียวกันรึป่าวครับเนี้ยย รึต่างคนต่างทำ
เดี่ยวกันครับว่าจะเอามันดัดแปลงใหม่จากของเพื่อน
ต้อง copy error มาดูด้วยครับ แบบนี้มันบอกอะไรไม่ได้
WARNING: library TridentTD_LineNotify-master claims to run on esp8266, esp32 architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
In file included from C:\Users\PEPO\Documents\Arduino\sketch_dec26a\sketch_dec26a.ino:1:0:
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:89:43: error: 'fs' has not been declared
bool notifyPicture(String message, fs::FS &fs, String path);
^~
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:89:50: error: expected ',' or '...' before '&' token
bool notifyPicture(String message, fs::FS &fs, String path);
^
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:90:27: error: 'fs' has not been declared
bool notifyPicture(fs::FS &fs, String path);
^~
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:90:34: error: expected ',' or '...' before '&' token
bool notifyPicture(fs::FS &fs, String path);
^
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:100:105: error: 'fs' has not been declared
bool _notify(String message, int StickerPackageID=0, int StickerID=0, String picture_url="", fs::FS &fs=SPIFFS , String path="", uint8_t* image_data=NULL, size_t image_size=0);
^~
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:100:112: error: expected ',' or '...' before '&' token
bool _notify(String message, int StickerPackageID=0, int StickerID=0, String picture_url="", fs::FS &fs=SPIFFS , String path="", uint8_t* image_data=NULL, size_t image_size=0);
^
C:\Users\PEPO\Documents\Arduino\libraries\TridentTD_LineNotify-master\src/TridentTD_LineNotify.h:100:17: error: default argument missing for parameter 5 of 'bool TridentTD_LineNotify::_notify(arduino::String, int, int, arduino::String, int)'
bool _notify(String message, int StickerPackageID=0, int StickerID=0, String picture_url="", fs::FS &fs=SPIFFS , String path="", uint8_t* image_data=NULL, size_t image_size=0);
^~~~~~~
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.