Network
First and foremost, the network class is arguably the most important class in this library. It dictates connects the pico to your wifi network and creates a socket with which the program can communicate with your computer and X-Plane. The Dataref and Command class are built around the Network class and require a network object as a parameter to operate, since they use the socket the object provides.
You should only have one network object per pico.
Import
The Network class is in the XPyDeck library, so you import it in main.py with from XPyDeck import Network.
Constructor
| Constructor | Description |
|---|---|
Network() | Creates a network object using the wifi details you entered in webInfo.json |
Example Code Snippet
from XPyDeck import Network
net = Network()