Signals and slots prepared to update content, received from UDP packet

This commit is contained in:
Ollo
2023-08-15 14:38:39 +02:00
parent 3a71ee786e
commit 536779910e
4 changed files with 55 additions and 11 deletions

View File

@@ -11,12 +11,15 @@ class UdpLedServer : public QObject
public:
explicit UdpLedServer (QObject *parent = nullptr);
private:
void initSocket();
void readPendingDatagrams();
QUdpSocket *mUdpSocket;
void processTheDatagram(QNetworkDatagram datagram);
signals:
void changeLEDstate(uint8_t x, uint8_t y);
void updatePanelContent(void);
};
#endif // UDPSERVER_H