Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

arduino-xmodemで簡易的にArduinoと端末間のファイル送受信をする その2:Arduino to Guest

#include <SD.h>
#include <XModem.h>
Xmodem xmodem(&Serial, ModeXmodem);

void setup()
{
  Serial.begin(115200);
  delay(1000); //待ち
  File file = SD.open("/1.log");
  xmodem.sendFile(file, "datalog.log");
}

void loop() {
}