diff --git a/content/tutorials/networkprotocols/mdns.md b/content/tutorials/networkprotocols/mdns.md new file mode 100644 index 0000000..a835aee --- /dev/null +++ b/content/tutorials/networkprotocols/mdns.md @@ -0,0 +1,18 @@ +--- +title: "MDNS" +--- +On this page, we will explore the Multicast DNS feature. MDNS is very useful for connecting to a device of which you do not know the IP address, and works similar to the Domain Name System, on a local network without the need for a DNS server. You can use the `hostname.local` url to connect. To be able to use MDNS on your computer, you might need some additional software. +* Windows: +* MacOS: built in! +* Linux: + +## Use MDNS for a Telnet connection +```python +from network import MDNS +MDNS.init() +MDNS.set_name(hostname ="pycom", instance_name="pycom") +MDNS.add_service("_http",MDNS.PROTO_TCP, 80) +MDNS.add_service("_telnetd", MDNS.PROTO_TCP, 23) +``` + +When this is running on your development board, you can go to your terminal and try `ping pycom.local`. The second service activate the telnet link, so you can also try `telnet pycom.local` and connect to the REPL through this method! \ No newline at end of file diff --git a/content/tutorials/networks/lora/_index.md b/content/tutorials/networks/lora/_index.md index 7dc2a33..decf957 100644 --- a/content/tutorials/networks/lora/_index.md +++ b/content/tutorials/networks/lora/_index.md @@ -8,9 +8,9 @@ The following tutorials demonstrate the use of the LoRa functionality on the LoP When using Lora, **Always** connect the appropriate LoRa antenna to your device. See the figures below for the correct antenna placement -| Lopy | Lopy4 | Fipy | -|:---|:---|:---| -| ![](/gitbook/assets/lora_pigtail_ant_lopy.png) | ![](/gitbook/assets/lora_sigfox_pigtail_ant_lopy4.png) | ![](/gitbook/assets/lora_sigfox_pigtail_ant_fipy.png) | +| Lopy / Fipy | Lopy4 | +|:---|:---| +| ![](/gitbook/assets/lora_pigtail_lopy.png) | ![](/gitbook/assets/lora_sigfox_pigtail_lopy4.png) | * **LoRaWAN mode** implements the full LoRaWAN stack for a class A device. It supports both OTAA and ABP connection methods, as well as advanced features like adding and removing custom channels to support "special" frequencies plans like the those used in New Zealand. There are two basic ways of accessing the LoraWAN network: * [LoRaWAN ABP](../lora/lorawan-abp/) diff --git a/content/tutorials/networks/sigfox.md b/content/tutorials/networks/sigfox.md index 5239c3c..c3ee652 100644 --- a/content/tutorials/networks/sigfox.md +++ b/content/tutorials/networks/sigfox.md @@ -12,7 +12,7 @@ When using the SigFox network, **Always** connect the appropriate LoRa antenna t | Lopy4 | Fipy | |---|---| -| ![](/gitbook/assets/lora_sigfox_pigtail_ant_lopy4.png) | ![](/gitbook/assets/lora_sigfox_pigtail_ant_fipy.png) | +| ![](/gitbook/assets/lora_sigfox_pigtail_lopy4.png) | ![](/gitbook/assets/lora_sigfox_pigtail_fipy.png) | On this page we cover 1. [Connecting to Sigfox](#connecting-to-sigfox) diff --git a/static/gitbook/assets/lora_pigtail_lopy.png b/static/gitbook/assets/lora_pigtail_lopy.png index 318c607..34a3682 100644 Binary files a/static/gitbook/assets/lora_pigtail_lopy.png and b/static/gitbook/assets/lora_pigtail_lopy.png differ diff --git a/static/gitbook/assets/lora_sigfox_pigtail_fipy.png b/static/gitbook/assets/lora_sigfox_pigtail_fipy.png index 494e317..ad6661c 100644 Binary files a/static/gitbook/assets/lora_sigfox_pigtail_fipy.png and b/static/gitbook/assets/lora_sigfox_pigtail_fipy.png differ diff --git a/static/gitbook/assets/lte_ant_fipy.png b/static/gitbook/assets/lte_ant_fipy.png index bf5ab15..eb4500b 100644 Binary files a/static/gitbook/assets/lte_ant_fipy.png and b/static/gitbook/assets/lte_ant_fipy.png differ diff --git a/static/gitbook/assets/lte_ant_gpy.png b/static/gitbook/assets/lte_ant_gpy.png index 52b75c6..9f947eb 100644 Binary files a/static/gitbook/assets/lte_ant_gpy.png and b/static/gitbook/assets/lte_ant_gpy.png differ diff --git a/themes/doc-theme/static/css/doc-theme.css b/themes/doc-theme/static/css/doc-theme.css index 828273d..a1bc81f 100644 --- a/themes/doc-theme/static/css/doc-theme.css +++ b/themes/doc-theme/static/css/doc-theme.css @@ -278,7 +278,7 @@ img { table { display: table; - width: 100%; + max-width: 100%; border-collapse: collapse; border-spacing: 0; overflow: auto;