| 768 | |
| 769 | #ifdef ESP8266 |
| 770 | class WiFiDisplayClass : public SerialDisplayClass { |
| 771 | private: |
| 772 | WiFiClient client; |
| 773 | public: |
| 774 | bool begin(const char* host, int width=VECTOR_DISPLAY_DEFAULT_WIDTH, int height=VECTOR_DISPLAY_DEFAULT_HEIGHT) { |
| 775 | VectorDisplayClass::begin(width, height); |
| 776 | return client.connect(host, 7788); |
| 777 | } |
| 778 | |
| 779 | virtual void end() override { |
| 780 | VectorDisplayClass::end(); |
| 781 | client.stop(); |
| 782 | } |
| 783 | |
| 784 | WiFiDisplayClass() : SerialDisplayClass(client) { |
| 785 | } |
| 786 | }; |
| 787 | #endif |
| 788 | |
| 789 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected