Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
450 B

  1. /*
  2. TELNET MODULE
  3. Copyright (C) 2017-2019 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. #pragma once
  6. #include "espurna.h"
  7. #include <Arduino.h>
  8. #include <Schedule.h>
  9. #include <memory>
  10. #include <list>
  11. constexpr unsigned char TELNET_IAC = 0xFF;
  12. constexpr unsigned char TELNET_XEOF = 0xEC;
  13. bool telnetConnected();
  14. unsigned char telnetWrite(unsigned char ch);
  15. bool telnetDebugSend(const char* prefix, const char* data);
  16. void telnetSetup();