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.

ArduinoSerial.h 394B

12345678910111213141516171819202122232425262728
  1. //
  2. // Created by robin on 5/6/16.
  3. //
  4. #ifndef DIGICODE_HOST_ARDUINOSERIAL_H
  5. #define DIGICODE_HOST_ARDUINOSERIAL_H
  6. #include <string>
  7. class ArduinoSerial
  8. {
  9. public:
  10. ArduinoSerial(std::string port, int baudrate);
  11. virtual ~ArduinoSerial();
  12. int open();
  13. void close();
  14. protected:
  15. std::string port_;
  16. int bauderate_;
  17. int fd_;
  18. };
  19. #endif //DIGICODE_HOST_ARDUINOSERIAL_H