We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23f5429 + 000adac commit 3c03766Copy full SHA for 3c03766
ext/PrecompileMQTT.jl
@@ -121,8 +121,15 @@ using MQTTClient
121
close(server)
122
123
## UDS Basic Run
124
- server = MQTTClient.MockMQTTBroker("/tmp/testmqtt.sock")
125
- client, conn = MakeConnection("/tmp/testmqtt.sock")
+
+ # Windows requires specific pipe names: https://learn.microsoft.com/de-de/windows/win32/ipc/pipe-names?redirectedfrom=MSDN
126
+ tmp_socket_name = if Sys.iswindows()
127
+ "\\\\.\\pipe\\tmp\\testmqtt.sock"
128
+ else
129
+ "/tmp/testmqtt.sock"
130
+ end
131
+ server = MQTTClient.MockMQTTBroker(tmp_socket_name)
132
+ client, conn = MakeConnection(tmp_socket_name)
133
134
connect(client, conn)
135
0 commit comments