Skip to content

Commit 526b000

Browse files
committed
[docs] added docs about TCP connections
1 parent 2743e2e commit 526b000

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/connections.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,37 @@ If the whole process was successful, the device will be accessible on the
256256
They have to be recreated after every restart either manually, or with
257257
a startup script.
258258

259+
Internet
260+
--------
261+
262+
The newest instruments (in addition to Bluetooth) also come with WLAN support.
263+
This enables connections through TCP/IP.
264+
265+
.. note::
266+
267+
In case of Leica instruments and GeoCOM, the GeoCOM interface on the
268+
instrument might have to be manually switched to WLAN mode
269+
before initiating a connection.
270+
271+
To initiate a connection through internet sockets, the instrument and the
272+
controlling computer must be connected to the same WLAN.
273+
274+
.. tip::
275+
276+
The IP address and TCP port number of the instrument can be checked in the
277+
control menu of the connection settings on the instrument.
278+
279+
.. code-block:: python
280+
:caption: Connection through TCP/IP over WLAN
281+
:linenos:
282+
283+
from geocompy import open_socket
284+
285+
286+
with open_socket("192.168.0.1", 1212, "tcp") as soc:
287+
soc.send("some message")
288+
289+
259290
Simulators
260291
----------
261292

0 commit comments

Comments
 (0)