JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

mDNS doesn't work #89

Closed JohnySeven closed 2 years ago

JohnySeven commented 2 years ago

Finding SignalK using mDNS doesn't work in TWatchSK! Also when user connects to WiFi for first time, TWatchSK could automatically try to find SignalK server in connected network.

JohnySeven commented 2 years ago

After little digging I've found the issue. SignalK WS mDNS service name must start with underscore. If I change it in code I'm able to find Signal K correctly.

const char *service_name = "_signalk-ws";
const char *service_proto = "_tcp";

Will do PR hopefully in couple of days.

JohnySeven commented 2 years ago

Fixed in commit https://github.com/JohnySeven/TWatchSK/commit/0c07760b8310f76ba8b2991883e8632c6752c7b7, closing.