-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from RoboticsBrno/Robutek-docs
Robutek docs
- Loading branch information
Showing
21 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Docs - Robůtek | ||
|
||
V této sekci najdete dokumentaci k programování a ovládáni Robůtka a jeho částí. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Docs - Bezdrátové programování | ||
|
||
Robůtka můžeme monitoroovat a programovat bezdrátově. | ||
|
||
## Připojení k Robůtkovi | ||
|
||
1. Klikneme na tlačítko vybírání portu (někdy zůstane předvyplněný z minula)<br> | ||
![](assets/open-port.png) <br> | ||
|
||
2. Vybereme `Socket` (úplně dole)<br> | ||
![](assets/select-socket.png) <br> | ||
|
||
3. Zadáme IP adresu ([získání IP adresy](../wifi/#zjištení-ip-adresy)) <br> | ||
![](assets/input-ip.png) <br> | ||
|
||
4. Poté můžeme bezdrátově programovat jako kdyby byl Robůtek připojený kabelem. | ||
|
||
!!! warning "Někdy bůže nastat chyba. Pokud nastane, stačí zmáčknout `Ctrl+C` a zkusit to znovu." |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Docs - WiFi | ||
|
||
K Robůtkovi se můžeme připojit i bezdrátově pomocí WiFi. K tomu ale potřebujeme aby se Robůtek buď [připojil k existující síti](#pripojeni-k-existujici-siti) nebo [vytvořil novou síť](#vytvoreni-nove-site). | ||
|
||
## Připojení k existující síti | ||
|
||
1. Klikneme na tlačítko `Config WiFi` na dolní liště. Zde budeme dělat všechno nastavení WiFi. <br> | ||
![](assets/config-wifi-btn.png) <br> | ||
|
||
2. Vybereme možnost `Add WiFi network`. | ||
![](assets/add-wifi-network.png) <br> | ||
|
||
3. A zadáme název sítě (SSID) | ||
![](assets/input-ssid.png) <br> | ||
|
||
!!! note "Co dělat když název sítě má v sobě mezeru" | ||
- Pokud název sítě má v sobě mezeru, musíme ho vložit do uvozovek, například `"Hele mezera"`. | ||
|
||
4. Dole v terminále se nám zobrazí místo na zadání hesla. | ||
![](assets/input-password.png) <br> | ||
|
||
5. Po zadání hesla be se nám zobrazí správa že vše proběhlo v pořádku. | ||
![](assets/wifi-added.png) <br> | ||
|
||
6. Poté musíme znovu kliknout na tlačítko `Config WiFi` a vybrat možnost `Set WiFI to Station mode (connect to WiFi)`. | ||
![](assets/wifi-station-mode.png) <br> | ||
|
||
## Vytvoření nové sítě | ||
|
||
1. Klikneme na tlačítko `Config WiFi` na dolní liště. Zde budeme dělat všechno nastavení WiFi. <br> | ||
![](assets/config-wifi-btn.png) <br> | ||
|
||
2. Vybereme možnost `Set WiFi to AP mode (create a hotspot)`. | ||
![](assets/add-wifi-network.png) <br> | ||
|
||
3. A zadáme název sítě (SSID) | ||
![](assets/input-ssid.png) <br> | ||
|
||
!!! note "Co dělat když název sítě má v sobě mezeru" | ||
- Pokud název sítě má v sobě mezeru, musíme ho vložit do uvozovek, například `"Hele mezera"`. | ||
|
||
4. Dole v terminále se nám zobrazí místo na zadání hesla. | ||
![](assets/input-password.png) <br> | ||
|
||
## Vypnutí WiFi | ||
|
||
1. Klikneme na tlačítko `Config WiFi` na dolní liště. <br> | ||
![](assets/config-wifi-btn.png) <br> | ||
|
||
2. Vybereme možnost `Disable WiFi`. | ||
![](assets/disable-wifi.png) <br> | ||
|
||
## Zjištení IP adresy | ||
|
||
1. Klikneme na tlačítko `Config WiFi` na dolní liště. <br> | ||
![](assets/config-wifi-btn.png) <br> | ||
|
||
2. Vybereme možnost `Display current WiFI config`.<br> | ||
![](assets/display-wifi-config.png) <br> | ||
|
||
3. A v terminále se zobrazí IP adresa (Nějakou dobu trvá než se Robůtek připojí k sítí, takže je možné že to bude chvíly trvat) <br> | ||
![](assets/ip-address.png) <br> | ||
|
||
Nebo v kódu můžete získat IP adresu pomocí funkce `currentIp()`: | ||
|
||
```ts | ||
import * as wifi from "wifi"; | ||
|
||
console.log(wifi.currentIp()) | ||
``` | ||
|
||
## Připojení k síti | ||
|
||
1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters