MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / WiFiDisplayClass

Class WiFiDisplayClass

include/VectorDisplay.h:770–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768
769#ifdef ESP8266
770class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected