src/eric7/Documentation/Source/eric7.MicroPython.Devices.DeviceBase.html

branch
eric7
changeset 10479
856476537696
parent 10428
a071d4065202
child 10515
6e790462348a
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.MicroPython.Devices.DeviceBase</h1> 9 <h1>eric7.MicroPython.Devices.DeviceBase</h1>
10
11 <p> 10 <p>
12 Module implementing some utility functions and the MicroPythonDevice base 11 Module implementing some utility functions and the MicroPythonDevice base
13 class. 12 class.
14 </p> 13 </p>
14
15 <h3>Global Attributes</h3> 15 <h3>Global Attributes</h3>
16
17 <table> 16 <table>
18 <tr><td>None</td></tr> 17 <tr><td>None</td></tr>
19 </table> 18 </table>
19
20 <h3>Classes</h3> 20 <h3>Classes</h3>
21
22 <table> 21 <table>
23
24 <tr> 22 <tr>
25 <td><a href="#BaseDevice">BaseDevice</a></td> 23 <td><a href="#BaseDevice">BaseDevice</a></td>
26 <td>Base class for the more specific MicroPython devices.</td> 24 <td>Base class for the more specific MicroPython devices.</td>
27 </tr> 25 </tr>
28 </table> 26 </table>
27
29 <h3>Functions</h3> 28 <h3>Functions</h3>
30
31 <table> 29 <table>
32 <tr><td>None</td></tr> 30 <tr><td>None</td></tr>
33 </table> 31 </table>
32
34 <hr /> 33 <hr />
35 <hr /> 34 <hr />
36 <a NAME="BaseDevice" ID="BaseDevice"></a> 35 <a NAME="BaseDevice" ID="BaseDevice"></a>
37 <h2>BaseDevice</h2> 36 <h2>BaseDevice</h2>
38
39 <p> 37 <p>
40 Base class for the more specific MicroPython devices. 38 Base class for the more specific MicroPython devices.
41 </p> 39 </p>
42 <p> 40 <p>
43 It includes a list of commands for general use on the various boards. 41 It includes a list of commands for general use on the various boards.
123 <li>writeLanAutoConnect: save IPv4 parameters to the board and create a script 121 <li>writeLanAutoConnect: save IPv4 parameters to the board and create a script
124 to connect the board to the LAN</li> 122 to connect the board to the LAN</li>
125 <li>removeLanAutoConnect: remove the IPv4 parameters and script from the board</li> 123 <li>removeLanAutoConnect: remove the IPv4 parameters and script from the board</li>
126 </ul> 124 </ul>
127 </p> 125 </p>
126
128 <h3>Derived from</h3> 127 <h3>Derived from</h3>
129 QObject 128 QObject
130 <h3>Class Attributes</h3> 129 <h3>Class Attributes</h3>
131
132 <table> 130 <table>
133 <tr><td>None</td></tr> 131 <tr><td>None</td></tr>
134 </table> 132 </table>
133
135 <h3>Class Methods</h3> 134 <h3>Class Methods</h3>
136
137 <table> 135 <table>
138 <tr><td>None</td></tr> 136 <tr><td>None</td></tr>
139 </table> 137 </table>
138
140 <h3>Methods</h3> 139 <h3>Methods</h3>
141
142 <table> 140 <table>
143
144 <tr> 141 <tr>
145 <td><a href="#BaseDevice.__init__">BaseDevice</a></td> 142 <td><a href="#BaseDevice.__init__">BaseDevice</a></td>
146 <td>Constructor</td> 143 <td>Constructor</td>
147 </tr> 144 </tr>
148 <tr> 145 <tr>
528 <tr> 525 <tr>
529 <td><a href="#BaseDevice.writeLanAutoConnect">writeLanAutoConnect</a></td> 526 <td><a href="#BaseDevice.writeLanAutoConnect">writeLanAutoConnect</a></td>
530 <td>Public method to generate a script and associated configuration to connect the device to the LAN during boot time.</td> 527 <td>Public method to generate a script and associated configuration to connect the device to the LAN during boot time.</td>
531 </tr> 528 </tr>
532 </table> 529 </table>
530
533 <h3>Static Methods</h3> 531 <h3>Static Methods</h3>
534
535 <table> 532 <table>
536 <tr><td>None</td></tr> 533 <tr><td>None</td></tr>
537 </table> 534 </table>
538 535
536
539 <a NAME="BaseDevice.__init__" ID="BaseDevice.__init__"></a> 537 <a NAME="BaseDevice.__init__" ID="BaseDevice.__init__"></a>
540 <h4>BaseDevice (Constructor)</h4> 538 <h4>BaseDevice (Constructor)</h4>
541 <b>BaseDevice</b>(<i>microPythonWidget, deviceType, parent=None</i>) 539 <b>BaseDevice</b>(<i>microPythonWidget, deviceType, parent=None</i>)
542
543 <p> 540 <p>
544 Constructor 541 Constructor
545 </p> 542 </p>
543
546 <dl> 544 <dl>
547 545
548 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt> 546 <dt><i>microPythonWidget</i> (MicroPythonWidget)</dt>
549 <dd> 547 <dd>
550 reference to the main MicroPython widget 548 reference to the main MicroPython widget
559 </dd> 557 </dd>
560 </dl> 558 </dl>
561 <a NAME="BaseDevice.__getDeviceData" ID="BaseDevice.__getDeviceData"></a> 559 <a NAME="BaseDevice.__getDeviceData" ID="BaseDevice.__getDeviceData"></a>
562 <h4>BaseDevice.__getDeviceData</h4> 560 <h4>BaseDevice.__getDeviceData</h4>
563 <b>__getDeviceData</b>(<i></i>) 561 <b>__getDeviceData</b>(<i></i>)
564
565 <p> 562 <p>
566 Private method to get some essential data for the connected board. 563 Private method to get some essential data for the connected board.
567 </p> 564 </p>
565
568 <dl> 566 <dl>
569 <dt>Return:</dt> 567 <dt>Return:</dt>
570 <dd> 568 <dd>
571 dictionary containing the determined data 569 dictionary containing the determined data
572 </dd> 570 </dd>
585 </dd> 583 </dd>
586 </dl> 584 </dl>
587 <a NAME="BaseDevice._getSetTimeCode" ID="BaseDevice._getSetTimeCode"></a> 585 <a NAME="BaseDevice._getSetTimeCode" ID="BaseDevice._getSetTimeCode"></a>
588 <h4>BaseDevice._getSetTimeCode</h4> 586 <h4>BaseDevice._getSetTimeCode</h4>
589 <b>_getSetTimeCode</b>(<i></i>) 587 <b>_getSetTimeCode</b>(<i></i>)
590
591 <p> 588 <p>
592 Protected method to get the device code to set the time. 589 Protected method to get the device code to set the time.
593 </p> 590 </p>
594 <p> 591 <p>
595 Note: This method must be implemented in the various device specific 592 Note: This method must be implemented in the various device specific
596 subclasses. 593 subclasses.
597 </p> 594 </p>
595
598 <dl> 596 <dl>
599 <dt>Return:</dt> 597 <dt>Return:</dt>
600 <dd> 598 <dd>
601 code to be executed on the connected device to set the time 599 code to be executed on the connected device to set the time
602 </dd> 600 </dd>
608 </dd> 606 </dd>
609 </dl> 607 </dl>
610 <a NAME="BaseDevice._shortError" ID="BaseDevice._shortError"></a> 608 <a NAME="BaseDevice._shortError" ID="BaseDevice._shortError"></a>
611 <h4>BaseDevice._shortError</h4> 609 <h4>BaseDevice._shortError</h4>
612 <b>_shortError</b>(<i>error</i>) 610 <b>_shortError</b>(<i>error</i>)
613
614 <p> 611 <p>
615 Protected method to create a shortened error message. 612 Protected method to create a shortened error message.
616 </p> 613 </p>
614
617 <dl> 615 <dl>
618 616
619 <dt><i>error</i> (bytes)</dt> 617 <dt><i>error</i> (bytes)</dt>
620 <dd> 618 <dd>
621 verbose error message 619 verbose error message
634 </dd> 632 </dd>
635 </dl> 633 </dl>
636 <a NAME="BaseDevice.activateBluetoothInterface" ID="BaseDevice.activateBluetoothInterface"></a> 634 <a NAME="BaseDevice.activateBluetoothInterface" ID="BaseDevice.activateBluetoothInterface"></a>
637 <h4>BaseDevice.activateBluetoothInterface</h4> 635 <h4>BaseDevice.activateBluetoothInterface</h4>
638 <b>activateBluetoothInterface</b>(<i></i>) 636 <b>activateBluetoothInterface</b>(<i></i>)
639
640 <p> 637 <p>
641 Public method to activate the Bluetooth interface. 638 Public method to activate the Bluetooth interface.
642 </p> 639 </p>
640
643 <dl> 641 <dl>
644 <dt>Return:</dt> 642 <dt>Return:</dt>
645 <dd> 643 <dd>
646 flag indicating the new state of the Bluetooth interface 644 flag indicating the new state of the Bluetooth interface
647 </dd> 645 </dd>
653 </dd> 651 </dd>
654 </dl> 652 </dl>
655 <a NAME="BaseDevice.addDeviceBluetoothEntries" ID="BaseDevice.addDeviceBluetoothEntries"></a> 653 <a NAME="BaseDevice.addDeviceBluetoothEntries" ID="BaseDevice.addDeviceBluetoothEntries"></a>
656 <h4>BaseDevice.addDeviceBluetoothEntries</h4> 654 <h4>BaseDevice.addDeviceBluetoothEntries</h4>
657 <b>addDeviceBluetoothEntries</b>(<i>menu</i>) 655 <b>addDeviceBluetoothEntries</b>(<i>menu</i>)
658
659 <p> 656 <p>
660 Public method to add device specific entries to the given menu. 657 Public method to add device specific entries to the given menu.
661 </p> 658 </p>
659
662 <dl> 660 <dl>
663 661
664 <dt><i>menu</i> (QMenu)</dt> 662 <dt><i>menu</i> (QMenu)</dt>
665 <dd> 663 <dd>
666 reference to the context menu 664 reference to the context menu
667 </dd> 665 </dd>
668 </dl> 666 </dl>
669 <a NAME="BaseDevice.addDeviceEthernetEntries" ID="BaseDevice.addDeviceEthernetEntries"></a> 667 <a NAME="BaseDevice.addDeviceEthernetEntries" ID="BaseDevice.addDeviceEthernetEntries"></a>
670 <h4>BaseDevice.addDeviceEthernetEntries</h4> 668 <h4>BaseDevice.addDeviceEthernetEntries</h4>
671 <b>addDeviceEthernetEntries</b>(<i>menu</i>) 669 <b>addDeviceEthernetEntries</b>(<i>menu</i>)
672
673 <p> 670 <p>
674 Public method to add device specific entries to the given menu. 671 Public method to add device specific entries to the given menu.
675 </p> 672 </p>
673
676 <dl> 674 <dl>
677 675
678 <dt><i>menu</i> (QMenu)</dt> 676 <dt><i>menu</i> (QMenu)</dt>
679 <dd> 677 <dd>
680 reference to the context menu 678 reference to the context menu
681 </dd> 679 </dd>
682 </dl> 680 </dl>
683 <a NAME="BaseDevice.addDeviceMenuEntries" ID="BaseDevice.addDeviceMenuEntries"></a> 681 <a NAME="BaseDevice.addDeviceMenuEntries" ID="BaseDevice.addDeviceMenuEntries"></a>
684 <h4>BaseDevice.addDeviceMenuEntries</h4> 682 <h4>BaseDevice.addDeviceMenuEntries</h4>
685 <b>addDeviceMenuEntries</b>(<i>menu</i>) 683 <b>addDeviceMenuEntries</b>(<i>menu</i>)
686
687 <p> 684 <p>
688 Public method to add device specific entries to the given menu. 685 Public method to add device specific entries to the given menu.
689 </p> 686 </p>
687
690 <dl> 688 <dl>
691 689
692 <dt><i>menu</i> (QMenu)</dt> 690 <dt><i>menu</i> (QMenu)</dt>
693 <dd> 691 <dd>
694 reference to the context menu 692 reference to the context menu
695 </dd> 693 </dd>
696 </dl> 694 </dl>
697 <a NAME="BaseDevice.addDeviceWifiEntries" ID="BaseDevice.addDeviceWifiEntries"></a> 695 <a NAME="BaseDevice.addDeviceWifiEntries" ID="BaseDevice.addDeviceWifiEntries"></a>
698 <h4>BaseDevice.addDeviceWifiEntries</h4> 696 <h4>BaseDevice.addDeviceWifiEntries</h4>
699 <b>addDeviceWifiEntries</b>(<i>menu</i>) 697 <b>addDeviceWifiEntries</b>(<i>menu</i>)
700
701 <p> 698 <p>
702 Public method to add device specific entries to the given menu. 699 Public method to add device specific entries to the given menu.
703 </p> 700 </p>
701
704 <dl> 702 <dl>
705 703
706 <dt><i>menu</i> (QMenu)</dt> 704 <dt><i>menu</i> (QMenu)</dt>
707 <dd> 705 <dd>
708 reference to the context menu 706 reference to the context menu
709 </dd> 707 </dd>
710 </dl> 708 </dl>
711 <a NAME="BaseDevice.bool2str" ID="BaseDevice.bool2str"></a> 709 <a NAME="BaseDevice.bool2str" ID="BaseDevice.bool2str"></a>
712 <h4>BaseDevice.bool2str</h4> 710 <h4>BaseDevice.bool2str</h4>
713 <b>bool2str</b>(<i>val, capitalized=True</i>) 711 <b>bool2str</b>(<i>val, capitalized=True</i>)
714
715 <p> 712 <p>
716 Public method to generate a yes/no string given a truth value. 713 Public method to generate a yes/no string given a truth value.
717 </p> 714 </p>
715
718 <dl> 716 <dl>
719 717
720 <dt><i>val</i> (bool)</dt> 718 <dt><i>val</i> (bool)</dt>
721 <dd> 719 <dd>
722 truth value to be converted 720 truth value to be converted
739 </dd> 737 </dd>
740 </dl> 738 </dl>
741 <a NAME="BaseDevice.canRunScript" ID="BaseDevice.canRunScript"></a> 739 <a NAME="BaseDevice.canRunScript" ID="BaseDevice.canRunScript"></a>
742 <h4>BaseDevice.canRunScript</h4> 740 <h4>BaseDevice.canRunScript</h4>
743 <b>canRunScript</b>(<i></i>) 741 <b>canRunScript</b>(<i></i>)
744
745 <p> 742 <p>
746 Public method to determine, if a script can be executed. 743 Public method to determine, if a script can be executed.
747 </p> 744 </p>
745
748 <dl> 746 <dl>
749 <dt>Return:</dt> 747 <dt>Return:</dt>
750 <dd> 748 <dd>
751 tuple containing a flag indicating it is safe to start a 749 tuple containing a flag indicating it is safe to start a
752 Plotter and a reason why it cannot. 750 Plotter and a reason why it cannot.
759 </dd> 757 </dd>
760 </dl> 758 </dl>
761 <a NAME="BaseDevice.canStartFileManager" ID="BaseDevice.canStartFileManager"></a> 759 <a NAME="BaseDevice.canStartFileManager" ID="BaseDevice.canStartFileManager"></a>
762 <h4>BaseDevice.canStartFileManager</h4> 760 <h4>BaseDevice.canStartFileManager</h4>
763 <b>canStartFileManager</b>(<i></i>) 761 <b>canStartFileManager</b>(<i></i>)
764
765 <p> 762 <p>
766 Public method to determine, if a File Manager can be started. 763 Public method to determine, if a File Manager can be started.
767 </p> 764 </p>
765
768 <dl> 766 <dl>
769 <dt>Return:</dt> 767 <dt>Return:</dt>
770 <dd> 768 <dd>
771 tuple containing a flag indicating it is safe to start a 769 tuple containing a flag indicating it is safe to start a
772 File Manager and a reason why it cannot. 770 File Manager and a reason why it cannot.
779 </dd> 777 </dd>
780 </dl> 778 </dl>
781 <a NAME="BaseDevice.canStartPlotter" ID="BaseDevice.canStartPlotter"></a> 779 <a NAME="BaseDevice.canStartPlotter" ID="BaseDevice.canStartPlotter"></a>
782 <h4>BaseDevice.canStartPlotter</h4> 780 <h4>BaseDevice.canStartPlotter</h4>
783 <b>canStartPlotter</b>(<i></i>) 781 <b>canStartPlotter</b>(<i></i>)
784
785 <p> 782 <p>
786 Public method to determine, if a Plotter can be started. 783 Public method to determine, if a Plotter can be started.
787 </p> 784 </p>
785
788 <dl> 786 <dl>
789 <dt>Return:</dt> 787 <dt>Return:</dt>
790 <dd> 788 <dd>
791 tuple containing a flag indicating it is safe to start a 789 tuple containing a flag indicating it is safe to start a
792 Plotter and a reason why it cannot. 790 Plotter and a reason why it cannot.
799 </dd> 797 </dd>
800 </dl> 798 </dl>
801 <a NAME="BaseDevice.canStartRepl" ID="BaseDevice.canStartRepl"></a> 799 <a NAME="BaseDevice.canStartRepl" ID="BaseDevice.canStartRepl"></a>
802 <h4>BaseDevice.canStartRepl</h4> 800 <h4>BaseDevice.canStartRepl</h4>
803 <b>canStartRepl</b>(<i></i>) 801 <b>canStartRepl</b>(<i></i>)
804
805 <p> 802 <p>
806 Public method to determine, if a REPL can be started. 803 Public method to determine, if a REPL can be started.
807 </p> 804 </p>
805
808 <dl> 806 <dl>
809 <dt>Return:</dt> 807 <dt>Return:</dt>
810 <dd> 808 <dd>
811 tuple containing a flag indicating it is safe to start a REPL 809 tuple containing a flag indicating it is safe to start a REPL
812 and a reason why it cannot. 810 and a reason why it cannot.
819 </dd> 817 </dd>
820 </dl> 818 </dl>
821 <a NAME="BaseDevice.cd" ID="BaseDevice.cd"></a> 819 <a NAME="BaseDevice.cd" ID="BaseDevice.cd"></a>
822 <h4>BaseDevice.cd</h4> 820 <h4>BaseDevice.cd</h4>
823 <b>cd</b>(<i>dirname</i>) 821 <b>cd</b>(<i>dirname</i>)
824
825 <p> 822 <p>
826 Public method to change the current directory on the connected device. 823 Public method to change the current directory on the connected device.
827 </p> 824 </p>
825
828 <dl> 826 <dl>
829 827
830 <dt><i>dirname</i> (str)</dt> 828 <dt><i>dirname</i> (str)</dt>
831 <dd> 829 <dd>
832 directory to change to 830 directory to change to
840 </dd> 838 </dd>
841 </dl> 839 </dl>
842 <a NAME="BaseDevice.checkDeviceData" ID="BaseDevice.checkDeviceData"></a> 840 <a NAME="BaseDevice.checkDeviceData" ID="BaseDevice.checkDeviceData"></a>
843 <h4>BaseDevice.checkDeviceData</h4> 841 <h4>BaseDevice.checkDeviceData</h4>
844 <b>checkDeviceData</b>(<i>quiet=True</i>) 842 <b>checkDeviceData</b>(<i>quiet=True</i>)
845
846 <p> 843 <p>
847 Public method to check the validity of the device data determined during 844 Public method to check the validity of the device data determined during
848 connecting the device. 845 connecting the device.
849 </p> 846 </p>
847
850 <dl> 848 <dl>
851 849
852 <dt><i>quiet</i> (bool (optional))</dt> 850 <dt><i>quiet</i> (bool (optional))</dt>
853 <dd> 851 <dd>
854 flag indicating to not show an info message, if the data is 852 flag indicating to not show an info message, if the data is
868 </dd> 866 </dd>
869 </dl> 867 </dl>
870 <a NAME="BaseDevice.checkInternet" ID="BaseDevice.checkInternet"></a> 868 <a NAME="BaseDevice.checkInternet" ID="BaseDevice.checkInternet"></a>
871 <h4>BaseDevice.checkInternet</h4> 869 <h4>BaseDevice.checkInternet</h4>
872 <b>checkInternet</b>(<i></i>) 870 <b>checkInternet</b>(<i></i>)
873
874 <p> 871 <p>
875 Public method to check, if the internet can be reached. 872 Public method to check, if the internet can be reached.
876 </p> 873 </p>
874
877 <dl> 875 <dl>
878 <dt>Return:</dt> 876 <dt>Return:</dt>
879 <dd> 877 <dd>
880 tuple containing a flag indicating reachability and an error string 878 tuple containing a flag indicating reachability and an error string
881 </dd> 879 </dd>
887 </dd> 885 </dd>
888 </dl> 886 </dl>
889 <a NAME="BaseDevice.checkInternetViaLan" ID="BaseDevice.checkInternetViaLan"></a> 887 <a NAME="BaseDevice.checkInternetViaLan" ID="BaseDevice.checkInternetViaLan"></a>
890 <h4>BaseDevice.checkInternetViaLan</h4> 888 <h4>BaseDevice.checkInternetViaLan</h4>
891 <b>checkInternetViaLan</b>(<i></i>) 889 <b>checkInternetViaLan</b>(<i></i>)
892
893 <p> 890 <p>
894 Public method to check, if the internet can be reached (LAN variant). 891 Public method to check, if the internet can be reached (LAN variant).
895 </p> 892 </p>
893
896 <dl> 894 <dl>
897 <dt>Return:</dt> 895 <dt>Return:</dt>
898 <dd> 896 <dd>
899 tuple containing a flag indicating reachability and an error string 897 tuple containing a flag indicating reachability and an error string
900 </dd> 898 </dd>
906 </dd> 904 </dd>
907 </dl> 905 </dl>
908 <a NAME="BaseDevice.connectToLan" ID="BaseDevice.connectToLan"></a> 906 <a NAME="BaseDevice.connectToLan" ID="BaseDevice.connectToLan"></a>
909 <h4>BaseDevice.connectToLan</h4> 907 <h4>BaseDevice.connectToLan</h4>
910 <b>connectToLan</b>(<i>config, hostname</i>) 908 <b>connectToLan</b>(<i>config, hostname</i>)
911
912 <p> 909 <p>
913 Public method to connect the connected device to the LAN. 910 Public method to connect the connected device to the LAN.
914 </p> 911 </p>
912
915 <dl> 913 <dl>
916 914
917 <dt><i>config</i> (str or tuple of (str, str, str, str))</dt> 915 <dt><i>config</i> (str or tuple of (str, str, str, str))</dt>
918 <dd> 916 <dd>
919 configuration for the connection (either the string 'dhcp' 917 configuration for the connection (either the string 'dhcp'
937 </dd> 935 </dd>
938 </dl> 936 </dl>
939 <a NAME="BaseDevice.connectWifi" ID="BaseDevice.connectWifi"></a> 937 <a NAME="BaseDevice.connectWifi" ID="BaseDevice.connectWifi"></a>
940 <h4>BaseDevice.connectWifi</h4> 938 <h4>BaseDevice.connectWifi</h4>
941 <b>connectWifi</b>(<i>ssid, password, hostname</i>) 939 <b>connectWifi</b>(<i>ssid, password, hostname</i>)
942
943 <p> 940 <p>
944 Public method to connect a device to a WiFi network. 941 Public method to connect a device to a WiFi network.
945 </p> 942 </p>
943
946 <dl> 944 <dl>
947 945
948 <dt><i>ssid</i> (str)</dt> 946 <dt><i>ssid</i> (str)</dt>
949 <dd> 947 <dd>
950 name (SSID) of the WiFi network 948 name (SSID) of the WiFi network
971 </dd> 969 </dd>
972 </dl> 970 </dl>
973 <a NAME="BaseDevice.deactivateBluetoothInterface" ID="BaseDevice.deactivateBluetoothInterface"></a> 971 <a NAME="BaseDevice.deactivateBluetoothInterface" ID="BaseDevice.deactivateBluetoothInterface"></a>
974 <h4>BaseDevice.deactivateBluetoothInterface</h4> 972 <h4>BaseDevice.deactivateBluetoothInterface</h4>
975 <b>deactivateBluetoothInterface</b>(<i></i>) 973 <b>deactivateBluetoothInterface</b>(<i></i>)
976
977 <p> 974 <p>
978 Public method to deactivate the Bluetooth interface. 975 Public method to deactivate the Bluetooth interface.
979 </p> 976 </p>
977
980 <dl> 978 <dl>
981 <dt>Return:</dt> 979 <dt>Return:</dt>
982 <dd> 980 <dd>
983 flag indicating the new state of the Bluetooth interface 981 flag indicating the new state of the Bluetooth interface
984 </dd> 982 </dd>
990 </dd> 988 </dd>
991 </dl> 989 </dl>
992 <a NAME="BaseDevice.deactivateEthernet" ID="BaseDevice.deactivateEthernet"></a> 990 <a NAME="BaseDevice.deactivateEthernet" ID="BaseDevice.deactivateEthernet"></a>
993 <h4>BaseDevice.deactivateEthernet</h4> 991 <h4>BaseDevice.deactivateEthernet</h4>
994 <b>deactivateEthernet</b>(<i></i>) 992 <b>deactivateEthernet</b>(<i></i>)
995
996 <p> 993 <p>
997 Public method to deactivate the Ethernet interface of the connected device. 994 Public method to deactivate the Ethernet interface of the connected device.
998 </p> 995 </p>
996
999 <dl> 997 <dl>
1000 <dt>Return:</dt> 998 <dt>Return:</dt>
1001 <dd> 999 <dd>
1002 tuple containg a flag indicating success and an error message 1000 tuple containg a flag indicating success and an error message
1003 </dd> 1001 </dd>
1009 </dd> 1007 </dd>
1010 </dl> 1008 </dl>
1011 <a NAME="BaseDevice.deactivateInterface" ID="BaseDevice.deactivateInterface"></a> 1009 <a NAME="BaseDevice.deactivateInterface" ID="BaseDevice.deactivateInterface"></a>
1012 <h4>BaseDevice.deactivateInterface</h4> 1010 <h4>BaseDevice.deactivateInterface</h4>
1013 <b>deactivateInterface</b>(<i>interface</i>) 1011 <b>deactivateInterface</b>(<i>interface</i>)
1014
1015 <p> 1012 <p>
1016 Public method to deactivate a given WiFi interface of the connected device. 1013 Public method to deactivate a given WiFi interface of the connected device.
1017 </p> 1014 </p>
1015
1018 <dl> 1016 <dl>
1019 1017
1020 <dt><i>interface</i> (str)</dt> 1018 <dt><i>interface</i> (str)</dt>
1021 <dd> 1019 <dd>
1022 designation of the interface to be deactivated (one of 'AP' 1020 designation of the interface to be deactivated (one of 'AP'
1036 </dd> 1034 </dd>
1037 </dl> 1035 </dl>
1038 <a NAME="BaseDevice.deviceName" ID="BaseDevice.deviceName"></a> 1036 <a NAME="BaseDevice.deviceName" ID="BaseDevice.deviceName"></a>
1039 <h4>BaseDevice.deviceName</h4> 1037 <h4>BaseDevice.deviceName</h4>
1040 <b>deviceName</b>(<i></i>) 1038 <b>deviceName</b>(<i></i>)
1041
1042 <p> 1039 <p>
1043 Public method to get the name of the device. 1040 Public method to get the name of the device.
1044 </p> 1041 </p>
1042
1045 <dl> 1043 <dl>
1046 <dt>Return:</dt> 1044 <dt>Return:</dt>
1047 <dd> 1045 <dd>
1048 name of the device 1046 name of the device
1049 </dd> 1047 </dd>
1055 </dd> 1053 </dd>
1056 </dl> 1054 </dl>
1057 <a NAME="BaseDevice.disableWebrepl" ID="BaseDevice.disableWebrepl"></a> 1055 <a NAME="BaseDevice.disableWebrepl" ID="BaseDevice.disableWebrepl"></a>
1058 <h4>BaseDevice.disableWebrepl</h4> 1056 <h4>BaseDevice.disableWebrepl</h4>
1059 <b>disableWebrepl</b>(<i></i>) 1057 <b>disableWebrepl</b>(<i></i>)
1060
1061 <p> 1058 <p>
1062 Public method to write the given WebREPL password to the connected device and 1059 Public method to write the given WebREPL password to the connected device and
1063 modify the start script to start the WebREPL server. 1060 modify the start script to start the WebREPL server.
1064 </p> 1061 </p>
1062
1065 <dl> 1063 <dl>
1066 <dt>Return:</dt> 1064 <dt>Return:</dt>
1067 <dd> 1065 <dd>
1068 tuple containing a flag indicating success and an error message 1066 tuple containing a flag indicating success and an error message
1069 </dd> 1067 </dd>
1075 </dd> 1073 </dd>
1076 </dl> 1074 </dl>
1077 <a NAME="BaseDevice.disconnectFromLan" ID="BaseDevice.disconnectFromLan"></a> 1075 <a NAME="BaseDevice.disconnectFromLan" ID="BaseDevice.disconnectFromLan"></a>
1078 <h4>BaseDevice.disconnectFromLan</h4> 1076 <h4>BaseDevice.disconnectFromLan</h4>
1079 <b>disconnectFromLan</b>(<i></i>) 1077 <b>disconnectFromLan</b>(<i></i>)
1080
1081 <p> 1078 <p>
1082 Public method to disconnect from the LAN. 1079 Public method to disconnect from the LAN.
1083 </p> 1080 </p>
1081
1084 <dl> 1082 <dl>
1085 <dt>Return:</dt> 1083 <dt>Return:</dt>
1086 <dd> 1084 <dd>
1087 tuple containing a flag indicating success and an error message 1085 tuple containing a flag indicating success and an error message
1088 </dd> 1086 </dd>
1094 </dd> 1092 </dd>
1095 </dl> 1093 </dl>
1096 <a NAME="BaseDevice.disconnectWifi" ID="BaseDevice.disconnectWifi"></a> 1094 <a NAME="BaseDevice.disconnectWifi" ID="BaseDevice.disconnectWifi"></a>
1097 <h4>BaseDevice.disconnectWifi</h4> 1095 <h4>BaseDevice.disconnectWifi</h4>
1098 <b>disconnectWifi</b>(<i></i>) 1096 <b>disconnectWifi</b>(<i></i>)
1099
1100 <p> 1097 <p>
1101 Public method to disconnect a device from the WiFi network. 1098 Public method to disconnect a device from the WiFi network.
1102 </p> 1099 </p>
1100
1103 <dl> 1101 <dl>
1104 <dt>Return:</dt> 1102 <dt>Return:</dt>
1105 <dd> 1103 <dd>
1106 tuple containing a flag indicating success and an error string 1104 tuple containing a flag indicating success and an error string
1107 </dd> 1105 </dd>
1113 </dd> 1111 </dd>
1114 </dl> 1112 </dl>
1115 <a NAME="BaseDevice.downloadFirmware" ID="BaseDevice.downloadFirmware"></a> 1113 <a NAME="BaseDevice.downloadFirmware" ID="BaseDevice.downloadFirmware"></a>
1116 <h4>BaseDevice.downloadFirmware</h4> 1114 <h4>BaseDevice.downloadFirmware</h4>
1117 <b>downloadFirmware</b>(<i></i>) 1115 <b>downloadFirmware</b>(<i></i>)
1118
1119 <p> 1116 <p>
1120 Public method to download the device firmware. 1117 Public method to download the device firmware.
1121 </p> 1118 </p>
1119
1122 <a NAME="BaseDevice.enableWebrepl" ID="BaseDevice.enableWebrepl"></a> 1120 <a NAME="BaseDevice.enableWebrepl" ID="BaseDevice.enableWebrepl"></a>
1123 <h4>BaseDevice.enableWebrepl</h4> 1121 <h4>BaseDevice.enableWebrepl</h4>
1124 <b>enableWebrepl</b>(<i>password</i>) 1122 <b>enableWebrepl</b>(<i>password</i>)
1125
1126 <p> 1123 <p>
1127 Public method to write the given WebREPL password to the connected device and 1124 Public method to write the given WebREPL password to the connected device and
1128 modify the start script to start the WebREPL server. 1125 modify the start script to start the WebREPL server.
1129 </p> 1126 </p>
1127
1130 <dl> 1128 <dl>
1131 1129
1132 <dt><i>password</i> (str)</dt> 1130 <dt><i>password</i> (str)</dt>
1133 <dd> 1131 <dd>
1134 password needed to authenticate 1132 password needed to authenticate
1147 </dd> 1145 </dd>
1148 </dl> 1146 </dl>
1149 <a NAME="BaseDevice.ensurePath" ID="BaseDevice.ensurePath"></a> 1147 <a NAME="BaseDevice.ensurePath" ID="BaseDevice.ensurePath"></a>
1150 <h4>BaseDevice.ensurePath</h4> 1148 <h4>BaseDevice.ensurePath</h4>
1151 <b>ensurePath</b>(<i>target</i>) 1149 <b>ensurePath</b>(<i>target</i>)
1152
1153 <p> 1150 <p>
1154 Public method to ensure, that the given target path exists. 1151 Public method to ensure, that the given target path exists.
1155 </p> 1152 </p>
1153
1156 <dl> 1154 <dl>
1157 1155
1158 <dt><i>target</i> (str)</dt> 1156 <dt><i>target</i> (str)</dt>
1159 <dd> 1157 <dd>
1160 target directory 1158 target directory
1161 </dd> 1159 </dd>
1162 </dl> 1160 </dl>
1163 <a NAME="BaseDevice.executeCommands" ID="BaseDevice.executeCommands"></a> 1161 <a NAME="BaseDevice.executeCommands" ID="BaseDevice.executeCommands"></a>
1164 <h4>BaseDevice.executeCommands</h4> 1162 <h4>BaseDevice.executeCommands</h4>
1165 <b>executeCommands</b>(<i>commands, *, mode="raw", timeout=0</i>) 1163 <b>executeCommands</b>(<i>commands, *, mode="raw", timeout=0</i>)
1166
1167 <p> 1164 <p>
1168 Public method to send commands to the connected device and return the 1165 Public method to send commands to the connected device and return the
1169 result. 1166 result.
1170 </p> 1167 </p>
1171 <p> 1168 <p>
1172 If no connected interface is available, empty results will be returned. 1169 If no connected interface is available, empty results will be returned.
1173 </p> 1170 </p>
1171
1174 <dl> 1172 <dl>
1175 1173
1176 <dt><i>commands</i> (str or list of str)</dt> 1174 <dt><i>commands</i> (str or list of str)</dt>
1177 <dd> 1175 <dd>
1178 list of commands to be executed 1176 list of commands to be executed
1201 </dd> 1199 </dd>
1202 </dl> 1200 </dl>
1203 <a NAME="BaseDevice.exists" ID="BaseDevice.exists"></a> 1201 <a NAME="BaseDevice.exists" ID="BaseDevice.exists"></a>
1204 <h4>BaseDevice.exists</h4> 1202 <h4>BaseDevice.exists</h4>
1205 <b>exists</b>(<i>pathname</i>) 1203 <b>exists</b>(<i>pathname</i>)
1206
1207 <p> 1204 <p>
1208 Public method to check the existence of a file or directory. 1205 Public method to check the existence of a file or directory.
1209 </p> 1206 </p>
1207
1210 <dl> 1208 <dl>
1211 1209
1212 <dt><i>pathname</i> (str)</dt> 1210 <dt><i>pathname</i> (str)</dt>
1213 <dd> 1211 <dd>
1214 name of the path to check 1212 name of the path to check
1234 </dd> 1232 </dd>
1235 </dl> 1233 </dl>
1236 <a NAME="BaseDevice.fileSystemInfo" ID="BaseDevice.fileSystemInfo"></a> 1234 <a NAME="BaseDevice.fileSystemInfo" ID="BaseDevice.fileSystemInfo"></a>
1237 <h4>BaseDevice.fileSystemInfo</h4> 1235 <h4>BaseDevice.fileSystemInfo</h4>
1238 <b>fileSystemInfo</b>(<i></i>) 1236 <b>fileSystemInfo</b>(<i></i>)
1239
1240 <p> 1237 <p>
1241 Public method to obtain information about the currently mounted file 1238 Public method to obtain information about the currently mounted file
1242 systems. 1239 systems.
1243 </p> 1240 </p>
1241
1244 <dl> 1242 <dl>
1245 <dt>Return:</dt> 1243 <dt>Return:</dt>
1246 <dd> 1244 <dd>
1247 tuple of tuples containing the file system name, the total 1245 tuple of tuples containing the file system name, the total
1248 size, the used size and the free size 1246 size, the used size and the free size
1262 </dd> 1260 </dd>
1263 </dl> 1261 </dl>
1264 <a NAME="BaseDevice.forceInterrupt" ID="BaseDevice.forceInterrupt"></a> 1262 <a NAME="BaseDevice.forceInterrupt" ID="BaseDevice.forceInterrupt"></a>
1265 <h4>BaseDevice.forceInterrupt</h4> 1263 <h4>BaseDevice.forceInterrupt</h4>
1266 <b>forceInterrupt</b>(<i></i>) 1264 <b>forceInterrupt</b>(<i></i>)
1267
1268 <p> 1265 <p>
1269 Public method to determine the need for an interrupt when opening the 1266 Public method to determine the need for an interrupt when opening the
1270 serial connection. 1267 serial connection.
1271 </p> 1268 </p>
1269
1272 <dl> 1270 <dl>
1273 <dt>Return:</dt> 1271 <dt>Return:</dt>
1274 <dd> 1272 <dd>
1275 flag indicating an interrupt is needed 1273 flag indicating an interrupt is needed
1276 </dd> 1274 </dd>
1282 </dd> 1280 </dd>
1283 </dl> 1281 </dl>
1284 <a NAME="BaseDevice.get" ID="BaseDevice.get"></a> 1282 <a NAME="BaseDevice.get" ID="BaseDevice.get"></a>
1285 <h4>BaseDevice.get</h4> 1283 <h4>BaseDevice.get</h4>
1286 <b>get</b>(<i>deviceFileName, hostFileName=None</i>) 1284 <b>get</b>(<i>deviceFileName, hostFileName=None</i>)
1287
1288 <p> 1285 <p>
1289 Public method to copy a file from the connected device. 1286 Public method to copy a file from the connected device.
1290 </p> 1287 </p>
1288
1291 <dl> 1289 <dl>
1292 1290
1293 <dt><i>deviceFileName</i> (str)</dt> 1291 <dt><i>deviceFileName</i> (str)</dt>
1294 <dd> 1292 <dd>
1295 name of the file to copy 1293 name of the file to copy
1319 </dd> 1317 </dd>
1320 </dl> 1318 </dl>
1321 <a NAME="BaseDevice.getBluetoothStatus" ID="BaseDevice.getBluetoothStatus"></a> 1319 <a NAME="BaseDevice.getBluetoothStatus" ID="BaseDevice.getBluetoothStatus"></a>
1322 <h4>BaseDevice.getBluetoothStatus</h4> 1320 <h4>BaseDevice.getBluetoothStatus</h4>
1323 <b>getBluetoothStatus</b>(<i></i>) 1321 <b>getBluetoothStatus</b>(<i></i>)
1324
1325 <p> 1322 <p>
1326 Public method to get Bluetooth status data of the connected board. 1323 Public method to get Bluetooth status data of the connected board.
1327 </p> 1324 </p>
1325
1328 <dl> 1326 <dl>
1329 <dt>Return:</dt> 1327 <dt>Return:</dt>
1330 <dd> 1328 <dd>
1331 list of tuples containing the translated status data label and 1329 list of tuples containing the translated status data label and
1332 the associated value 1330 the associated value
1339 </dd> 1337 </dd>
1340 </dl> 1338 </dl>
1341 <a NAME="BaseDevice.getBoardInformation" ID="BaseDevice.getBoardInformation"></a> 1339 <a NAME="BaseDevice.getBoardInformation" ID="BaseDevice.getBoardInformation"></a>
1342 <h4>BaseDevice.getBoardInformation</h4> 1340 <h4>BaseDevice.getBoardInformation</h4>
1343 <b>getBoardInformation</b>(<i></i>) 1341 <b>getBoardInformation</b>(<i></i>)
1344
1345 <p> 1342 <p>
1346 Public method to get some information data of the connected board. 1343 Public method to get some information data of the connected board.
1347 </p> 1344 </p>
1345
1348 <dl> 1346 <dl>
1349 <dt>Return:</dt> 1347 <dt>Return:</dt>
1350 <dd> 1348 <dd>
1351 dictionary containing the determined data 1349 dictionary containing the determined data
1352 </dd> 1350 </dd>
1365 </dd> 1363 </dd>
1366 </dl> 1364 </dl>
1367 <a NAME="BaseDevice.getConnectedClients" ID="BaseDevice.getConnectedClients"></a> 1365 <a NAME="BaseDevice.getConnectedClients" ID="BaseDevice.getConnectedClients"></a>
1368 <h4>BaseDevice.getConnectedClients</h4> 1366 <h4>BaseDevice.getConnectedClients</h4>
1369 <b>getConnectedClients</b>(<i></i>) 1367 <b>getConnectedClients</b>(<i></i>)
1370
1371 <p> 1368 <p>
1372 Public method to get a list of connected clients. 1369 Public method to get a list of connected clients.
1373 </p> 1370 </p>
1371
1374 <dl> 1372 <dl>
1375 <dt>Return:</dt> 1373 <dt>Return:</dt>
1376 <dd> 1374 <dd>
1377 a tuple containing a list of tuples containing the client MAC-Address 1375 a tuple containing a list of tuples containing the client MAC-Address
1378 and the RSSI (if supported and available) and an error message 1376 and the RSSI (if supported and available) and an error message
1385 </dd> 1383 </dd>
1386 </dl> 1384 </dl>
1387 <a NAME="BaseDevice.getData" ID="BaseDevice.getData"></a> 1385 <a NAME="BaseDevice.getData" ID="BaseDevice.getData"></a>
1388 <h4>BaseDevice.getData</h4> 1386 <h4>BaseDevice.getData</h4>
1389 <b>getData</b>(<i>deviceFileName</i>) 1387 <b>getData</b>(<i>deviceFileName</i>)
1390
1391 <p> 1388 <p>
1392 Public method to read data from the connected device. 1389 Public method to read data from the connected device.
1393 </p> 1390 </p>
1391
1394 <dl> 1392 <dl>
1395 1393
1396 <dt><i>deviceFileName</i> (str)</dt> 1394 <dt><i>deviceFileName</i> (str)</dt>
1397 <dd> 1395 <dd>
1398 name of the file to read from 1396 name of the file to read from
1418 </dd> 1416 </dd>
1419 </dl> 1417 </dl>
1420 <a NAME="BaseDevice.getDeviceData" ID="BaseDevice.getDeviceData"></a> 1418 <a NAME="BaseDevice.getDeviceData" ID="BaseDevice.getDeviceData"></a>
1421 <h4>BaseDevice.getDeviceData</h4> 1419 <h4>BaseDevice.getDeviceData</h4>
1422 <b>getDeviceData</b>(<i>key=None</i>) 1420 <b>getDeviceData</b>(<i>key=None</i>)
1423
1424 <p> 1421 <p>
1425 Public method to get a copy of the determined device data or part of them. 1422 Public method to get a copy of the determined device data or part of them.
1426 </p> 1423 </p>
1424
1427 <dl> 1425 <dl>
1428 1426
1429 <dt><i>key</i> (str or list of str (optional))</dt> 1427 <dt><i>key</i> (str or list of str (optional))</dt>
1430 <dd> 1428 <dd>
1431 name or a list of names of the data to get (None to get all data) 1429 name or a list of names of the data to get (None to get all data)
1445 </dd> 1443 </dd>
1446 </dl> 1444 </dl>
1447 <a NAME="BaseDevice.getDeviceScan" ID="BaseDevice.getDeviceScan"></a> 1445 <a NAME="BaseDevice.getDeviceScan" ID="BaseDevice.getDeviceScan"></a>
1448 <h4>BaseDevice.getDeviceScan</h4> 1446 <h4>BaseDevice.getDeviceScan</h4>
1449 <b>getDeviceScan</b>(<i>timeout=10</i>) 1447 <b>getDeviceScan</b>(<i>timeout=10</i>)
1450
1451 <p> 1448 <p>
1452 Public method to perform a Bluetooth device scan. 1449 Public method to perform a Bluetooth device scan.
1453 </p> 1450 </p>
1451
1454 <dl> 1452 <dl>
1455 1453
1456 <dt><i>timeout</i> (int (optional))</dt> 1454 <dt><i>timeout</i> (int (optional))</dt>
1457 <dd> 1455 <dd>
1458 duration of the device scan in seconds (defaults 1456 duration of the device scan in seconds (defaults
1473 </dd> 1471 </dd>
1474 </dl> 1472 </dl>
1475 <a NAME="BaseDevice.getDeviceType" ID="BaseDevice.getDeviceType"></a> 1473 <a NAME="BaseDevice.getDeviceType" ID="BaseDevice.getDeviceType"></a>
1476 <h4>BaseDevice.getDeviceType</h4> 1474 <h4>BaseDevice.getDeviceType</h4>
1477 <b>getDeviceType</b>(<i></i>) 1475 <b>getDeviceType</b>(<i></i>)
1478
1479 <p> 1476 <p>
1480 Public method to get the device type. 1477 Public method to get the device type.
1481 </p> 1478 </p>
1479
1482 <dl> 1480 <dl>
1483 <dt>Return:</dt> 1481 <dt>Return:</dt>
1484 <dd> 1482 <dd>
1485 type of the device 1483 type of the device
1486 </dd> 1484 </dd>
1492 </dd> 1490 </dd>
1493 </dl> 1491 </dl>
1494 <a NAME="BaseDevice.getDocumentationUrl" ID="BaseDevice.getDocumentationUrl"></a> 1492 <a NAME="BaseDevice.getDocumentationUrl" ID="BaseDevice.getDocumentationUrl"></a>
1495 <h4>BaseDevice.getDocumentationUrl</h4> 1493 <h4>BaseDevice.getDocumentationUrl</h4>
1496 <b>getDocumentationUrl</b>(<i></i>) 1494 <b>getDocumentationUrl</b>(<i></i>)
1497
1498 <p> 1495 <p>
1499 Public method to get the device documentation URL. 1496 Public method to get the device documentation URL.
1500 </p> 1497 </p>
1498
1501 <dl> 1499 <dl>
1502 <dt>Return:</dt> 1500 <dt>Return:</dt>
1503 <dd> 1501 <dd>
1504 documentation URL of the device 1502 documentation URL of the device
1505 </dd> 1503 </dd>
1511 </dd> 1509 </dd>
1512 </dl> 1510 </dl>
1513 <a NAME="BaseDevice.getDownloadMenuEntries" ID="BaseDevice.getDownloadMenuEntries"></a> 1511 <a NAME="BaseDevice.getDownloadMenuEntries" ID="BaseDevice.getDownloadMenuEntries"></a>
1514 <h4>BaseDevice.getDownloadMenuEntries</h4> 1512 <h4>BaseDevice.getDownloadMenuEntries</h4>
1515 <b>getDownloadMenuEntries</b>(<i></i>) 1513 <b>getDownloadMenuEntries</b>(<i></i>)
1516
1517 <p> 1514 <p>
1518 Public method to retrieve the entries for the downloads menu. 1515 Public method to retrieve the entries for the downloads menu.
1519 </p> 1516 </p>
1517
1520 <dl> 1518 <dl>
1521 <dt>Return:</dt> 1519 <dt>Return:</dt>
1522 <dd> 1520 <dd>
1523 list of tuples with menu text and URL to be opened for each 1521 list of tuples with menu text and URL to be opened for each
1524 entry 1522 entry
1531 </dd> 1529 </dd>
1532 </dl> 1530 </dl>
1533 <a NAME="BaseDevice.getEthernetStatus" ID="BaseDevice.getEthernetStatus"></a> 1531 <a NAME="BaseDevice.getEthernetStatus" ID="BaseDevice.getEthernetStatus"></a>
1534 <h4>BaseDevice.getEthernetStatus</h4> 1532 <h4>BaseDevice.getEthernetStatus</h4>
1535 <b>getEthernetStatus</b>(<i></i>) 1533 <b>getEthernetStatus</b>(<i></i>)
1536
1537 <p> 1534 <p>
1538 Public method to get Ethernet status data of the connected board. 1535 Public method to get Ethernet status data of the connected board.
1539 </p> 1536 </p>
1537
1540 <dl> 1538 <dl>
1541 <dt>Return:</dt> 1539 <dt>Return:</dt>
1542 <dd> 1540 <dd>
1543 list of tuples containing the translated status data label and 1541 list of tuples containing the translated status data label and
1544 the associated value 1542 the associated value
1551 </dd> 1549 </dd>
1552 </dl> 1550 </dl>
1553 <a NAME="BaseDevice.getFirmwareUrl" ID="BaseDevice.getFirmwareUrl"></a> 1551 <a NAME="BaseDevice.getFirmwareUrl" ID="BaseDevice.getFirmwareUrl"></a>
1554 <h4>BaseDevice.getFirmwareUrl</h4> 1552 <h4>BaseDevice.getFirmwareUrl</h4>
1555 <b>getFirmwareUrl</b>(<i></i>) 1553 <b>getFirmwareUrl</b>(<i></i>)
1556
1557 <p> 1554 <p>
1558 Public method to get the device firmware download URL. 1555 Public method to get the device firmware download URL.
1559 </p> 1556 </p>
1557
1560 <dl> 1558 <dl>
1561 <dt>Return:</dt> 1559 <dt>Return:</dt>
1562 <dd> 1560 <dd>
1563 firmware download URL of the device 1561 firmware download URL of the device
1564 </dd> 1562 </dd>
1570 </dd> 1568 </dd>
1571 </dl> 1569 </dl>
1572 <a NAME="BaseDevice.getLibPaths" ID="BaseDevice.getLibPaths"></a> 1570 <a NAME="BaseDevice.getLibPaths" ID="BaseDevice.getLibPaths"></a>
1573 <h4>BaseDevice.getLibPaths</h4> 1571 <h4>BaseDevice.getLibPaths</h4>
1574 <b>getLibPaths</b>(<i></i>) 1572 <b>getLibPaths</b>(<i></i>)
1575
1576 <p> 1573 <p>
1577 Public method to get the list of library paths contained in 'sys.path'. 1574 Public method to get the list of library paths contained in 'sys.path'.
1578 </p> 1575 </p>
1576
1579 <dl> 1577 <dl>
1580 <dt>Return:</dt> 1578 <dt>Return:</dt>
1581 <dd> 1579 <dd>
1582 list of library paths 1580 list of library paths
1583 </dd> 1581 </dd>
1596 </dd> 1594 </dd>
1597 </dl> 1595 </dl>
1598 <a NAME="BaseDevice.getModules" ID="BaseDevice.getModules"></a> 1596 <a NAME="BaseDevice.getModules" ID="BaseDevice.getModules"></a>
1599 <h4>BaseDevice.getModules</h4> 1597 <h4>BaseDevice.getModules</h4>
1600 <b>getModules</b>(<i></i>) 1598 <b>getModules</b>(<i></i>)
1601
1602 <p> 1599 <p>
1603 Public method to show a list of modules built into the firmware. 1600 Public method to show a list of modules built into the firmware.
1604 </p> 1601 </p>
1602
1605 <dl> 1603 <dl>
1606 <dt>Return:</dt> 1604 <dt>Return:</dt>
1607 <dd> 1605 <dd>
1608 list of builtin modules 1606 list of builtin modules
1609 </dd> 1607 </dd>
1622 </dd> 1620 </dd>
1623 </dl> 1621 </dl>
1624 <a NAME="BaseDevice.getTime" ID="BaseDevice.getTime"></a> 1622 <a NAME="BaseDevice.getTime" ID="BaseDevice.getTime"></a>
1625 <h4>BaseDevice.getTime</h4> 1623 <h4>BaseDevice.getTime</h4>
1626 <b>getTime</b>(<i></i>) 1624 <b>getTime</b>(<i></i>)
1627
1628 <p> 1625 <p>
1629 Public method to get the current time of the device. 1626 Public method to get the current time of the device.
1630 </p> 1627 </p>
1628
1631 <dl> 1629 <dl>
1632 <dt>Return:</dt> 1630 <dt>Return:</dt>
1633 <dd> 1631 <dd>
1634 time of the device 1632 time of the device
1635 </dd> 1633 </dd>
1648 </dd> 1646 </dd>
1649 </dl> 1647 </dl>
1650 <a NAME="BaseDevice.getWifiData" ID="BaseDevice.getWifiData"></a> 1648 <a NAME="BaseDevice.getWifiData" ID="BaseDevice.getWifiData"></a>
1651 <h4>BaseDevice.getWifiData</h4> 1649 <h4>BaseDevice.getWifiData</h4>
1652 <b>getWifiData</b>(<i></i>) 1650 <b>getWifiData</b>(<i></i>)
1653
1654 <p> 1651 <p>
1655 Public method to get data related to the current WiFi status. 1652 Public method to get data related to the current WiFi status.
1656 </p> 1653 </p>
1654
1657 <dl> 1655 <dl>
1658 <dt>Return:</dt> 1656 <dt>Return:</dt>
1659 <dd> 1657 <dd>
1660 tuple of three dictionaries containing the WiFi status data 1658 tuple of three dictionaries containing the WiFi status data
1661 for the WiFi client, access point and overall data 1659 for the WiFi client, access point and overall data
1668 </dd> 1666 </dd>
1669 </dl> 1667 </dl>
1670 <a NAME="BaseDevice.getWorkspace" ID="BaseDevice.getWorkspace"></a> 1668 <a NAME="BaseDevice.getWorkspace" ID="BaseDevice.getWorkspace"></a>
1671 <h4>BaseDevice.getWorkspace</h4> 1669 <h4>BaseDevice.getWorkspace</h4>
1672 <b>getWorkspace</b>(<i></i>) 1670 <b>getWorkspace</b>(<i></i>)
1673
1674 <p> 1671 <p>
1675 Public method to get the workspace directory. 1672 Public method to get the workspace directory.
1676 </p> 1673 </p>
1674
1677 <dl> 1675 <dl>
1678 <dt>Return:</dt> 1676 <dt>Return:</dt>
1679 <dd> 1677 <dd>
1680 workspace directory used for saving files 1678 workspace directory used for saving files
1681 </dd> 1679 </dd>
1687 </dd> 1685 </dd>
1688 </dl> 1686 </dl>
1689 <a NAME="BaseDevice.handleDataFlood" ID="BaseDevice.handleDataFlood"></a> 1687 <a NAME="BaseDevice.handleDataFlood" ID="BaseDevice.handleDataFlood"></a>
1690 <h4>BaseDevice.handleDataFlood</h4> 1688 <h4>BaseDevice.handleDataFlood</h4>
1691 <b>handleDataFlood</b>(<i></i>) 1689 <b>handleDataFlood</b>(<i></i>)
1692
1693 <p> 1690 <p>
1694 Public slot handling a data floof from the device. 1691 Public slot handling a data floof from the device.
1695 </p> 1692 </p>
1693
1696 <a NAME="BaseDevice.hasBluetooth" ID="BaseDevice.hasBluetooth"></a> 1694 <a NAME="BaseDevice.hasBluetooth" ID="BaseDevice.hasBluetooth"></a>
1697 <h4>BaseDevice.hasBluetooth</h4> 1695 <h4>BaseDevice.hasBluetooth</h4>
1698 <b>hasBluetooth</b>(<i></i>) 1696 <b>hasBluetooth</b>(<i></i>)
1699
1700 <p> 1697 <p>
1701 Public method to check the availability of Bluetooth. 1698 Public method to check the availability of Bluetooth.
1702 </p> 1699 </p>
1700
1703 <dl> 1701 <dl>
1704 <dt>Return:</dt> 1702 <dt>Return:</dt>
1705 <dd> 1703 <dd>
1706 flag indicating the availability of Bluetooth 1704 flag indicating the availability of Bluetooth
1707 </dd> 1705 </dd>
1713 </dd> 1711 </dd>
1714 </dl> 1712 </dl>
1715 <a NAME="BaseDevice.hasCircuitPython" ID="BaseDevice.hasCircuitPython"></a> 1713 <a NAME="BaseDevice.hasCircuitPython" ID="BaseDevice.hasCircuitPython"></a>
1716 <h4>BaseDevice.hasCircuitPython</h4> 1714 <h4>BaseDevice.hasCircuitPython</h4>
1717 <b>hasCircuitPython</b>(<i></i>) 1715 <b>hasCircuitPython</b>(<i></i>)
1718
1719 <p> 1716 <p>
1720 Public method to check, if the connected device is flashed with CircuitPython. 1717 Public method to check, if the connected device is flashed with CircuitPython.
1721 </p> 1718 </p>
1719
1722 <dl> 1720 <dl>
1723 <dt>Return:</dt> 1721 <dt>Return:</dt>
1724 <dd> 1722 <dd>
1725 flag indicating CircuitPython 1723 flag indicating CircuitPython
1726 </dd> 1724 </dd>
1732 </dd> 1730 </dd>
1733 </dl> 1731 </dl>
1734 <a NAME="BaseDevice.hasDocumentationUrl" ID="BaseDevice.hasDocumentationUrl"></a> 1732 <a NAME="BaseDevice.hasDocumentationUrl" ID="BaseDevice.hasDocumentationUrl"></a>
1735 <h4>BaseDevice.hasDocumentationUrl</h4> 1733 <h4>BaseDevice.hasDocumentationUrl</h4>
1736 <b>hasDocumentationUrl</b>(<i></i>) 1734 <b>hasDocumentationUrl</b>(<i></i>)
1737
1738 <p> 1735 <p>
1739 Public method to check, if the device has a configured documentation 1736 Public method to check, if the device has a configured documentation
1740 URL. 1737 URL.
1741 </p> 1738 </p>
1739
1742 <dl> 1740 <dl>
1743 <dt>Return:</dt> 1741 <dt>Return:</dt>
1744 <dd> 1742 <dd>
1745 flag indicating a configured documentation URL 1743 flag indicating a configured documentation URL
1746 </dd> 1744 </dd>
1752 </dd> 1750 </dd>
1753 </dl> 1751 </dl>
1754 <a NAME="BaseDevice.hasEthernet" ID="BaseDevice.hasEthernet"></a> 1752 <a NAME="BaseDevice.hasEthernet" ID="BaseDevice.hasEthernet"></a>
1755 <h4>BaseDevice.hasEthernet</h4> 1753 <h4>BaseDevice.hasEthernet</h4>
1756 <b>hasEthernet</b>(<i></i>) 1754 <b>hasEthernet</b>(<i></i>)
1757
1758 <p> 1755 <p>
1759 Public method to check the availability of Ethernet. 1756 Public method to check the availability of Ethernet.
1760 </p> 1757 </p>
1758
1761 <dl> 1759 <dl>
1762 <dt>Return:</dt> 1760 <dt>Return:</dt>
1763 <dd> 1761 <dd>
1764 tuple containing a flag indicating the availability of Ethernet 1762 tuple containing a flag indicating the availability of Ethernet
1765 and the Ethernet type 1763 and the Ethernet type
1772 </dd> 1770 </dd>
1773 </dl> 1771 </dl>
1774 <a NAME="BaseDevice.hasFirmwareUrl" ID="BaseDevice.hasFirmwareUrl"></a> 1772 <a NAME="BaseDevice.hasFirmwareUrl" ID="BaseDevice.hasFirmwareUrl"></a>
1775 <h4>BaseDevice.hasFirmwareUrl</h4> 1773 <h4>BaseDevice.hasFirmwareUrl</h4>
1776 <b>hasFirmwareUrl</b>(<i></i>) 1774 <b>hasFirmwareUrl</b>(<i></i>)
1777
1778 <p> 1775 <p>
1779 Public method to check, if the device has a configured firmware 1776 Public method to check, if the device has a configured firmware
1780 download URL. 1777 download URL.
1781 </p> 1778 </p>
1779
1782 <dl> 1780 <dl>
1783 <dt>Return:</dt> 1781 <dt>Return:</dt>
1784 <dd> 1782 <dd>
1785 flag indicating a configured firmware download URL 1783 flag indicating a configured firmware download URL
1786 </dd> 1784 </dd>
1792 </dd> 1790 </dd>
1793 </dl> 1791 </dl>
1794 <a NAME="BaseDevice.hasFlashMenuEntry" ID="BaseDevice.hasFlashMenuEntry"></a> 1792 <a NAME="BaseDevice.hasFlashMenuEntry" ID="BaseDevice.hasFlashMenuEntry"></a>
1795 <h4>BaseDevice.hasFlashMenuEntry</h4> 1793 <h4>BaseDevice.hasFlashMenuEntry</h4>
1796 <b>hasFlashMenuEntry</b>(<i></i>) 1794 <b>hasFlashMenuEntry</b>(<i></i>)
1797
1798 <p> 1795 <p>
1799 Public method to check, if the device has its own flash menu entry. 1796 Public method to check, if the device has its own flash menu entry.
1800 </p> 1797 </p>
1798
1801 <dl> 1799 <dl>
1802 <dt>Return:</dt> 1800 <dt>Return:</dt>
1803 <dd> 1801 <dd>
1804 flag indicating a specific flash menu entry 1802 flag indicating a specific flash menu entry
1805 </dd> 1803 </dd>
1811 </dd> 1809 </dd>
1812 </dl> 1810 </dl>
1813 <a NAME="BaseDevice.hasNetworkTime" ID="BaseDevice.hasNetworkTime"></a> 1811 <a NAME="BaseDevice.hasNetworkTime" ID="BaseDevice.hasNetworkTime"></a>
1814 <h4>BaseDevice.hasNetworkTime</h4> 1812 <h4>BaseDevice.hasNetworkTime</h4>
1815 <b>hasNetworkTime</b>(<i></i>) 1813 <b>hasNetworkTime</b>(<i></i>)
1816
1817 <p> 1814 <p>
1818 Public method to check the availability of network time functions. 1815 Public method to check the availability of network time functions.
1819 </p> 1816 </p>
1817
1820 <dl> 1818 <dl>
1821 <dt>Return:</dt> 1819 <dt>Return:</dt>
1822 <dd> 1820 <dd>
1823 flag indicating the availability of network time functions 1821 flag indicating the availability of network time functions
1824 </dd> 1822 </dd>
1830 </dd> 1828 </dd>
1831 </dl> 1829 </dl>
1832 <a NAME="BaseDevice.hasTimeCommands" ID="BaseDevice.hasTimeCommands"></a> 1830 <a NAME="BaseDevice.hasTimeCommands" ID="BaseDevice.hasTimeCommands"></a>
1833 <h4>BaseDevice.hasTimeCommands</h4> 1831 <h4>BaseDevice.hasTimeCommands</h4>
1834 <b>hasTimeCommands</b>(<i></i>) 1832 <b>hasTimeCommands</b>(<i></i>)
1835
1836 <p> 1833 <p>
1837 Public method to check, if the device supports time commands. 1834 Public method to check, if the device supports time commands.
1838 </p> 1835 </p>
1839 <p> 1836 <p>
1840 The default returns True. 1837 The default returns True.
1841 </p> 1838 </p>
1839
1842 <dl> 1840 <dl>
1843 <dt>Return:</dt> 1841 <dt>Return:</dt>
1844 <dd> 1842 <dd>
1845 flag indicating support for time commands 1843 flag indicating support for time commands
1846 </dd> 1844 </dd>
1852 </dd> 1850 </dd>
1853 </dl> 1851 </dl>
1854 <a NAME="BaseDevice.hasWifi" ID="BaseDevice.hasWifi"></a> 1852 <a NAME="BaseDevice.hasWifi" ID="BaseDevice.hasWifi"></a>
1855 <h4>BaseDevice.hasWifi</h4> 1853 <h4>BaseDevice.hasWifi</h4>
1856 <b>hasWifi</b>(<i></i>) 1854 <b>hasWifi</b>(<i></i>)
1857
1858 <p> 1855 <p>
1859 Public method to check the availability of WiFi. 1856 Public method to check the availability of WiFi.
1860 </p> 1857 </p>
1858
1861 <dl> 1859 <dl>
1862 <dt>Return:</dt> 1860 <dt>Return:</dt>
1863 <dd> 1861 <dd>
1864 tuple containing a flag indicating the availability of WiFi 1862 tuple containing a flag indicating the availability of WiFi
1865 and the WiFi type (picow or pimoroni) 1863 and the WiFi type (picow or pimoroni)
1872 </dd> 1870 </dd>
1873 </dl> 1871 </dl>
1874 <a NAME="BaseDevice.hasWifiCountry" ID="BaseDevice.hasWifiCountry"></a> 1872 <a NAME="BaseDevice.hasWifiCountry" ID="BaseDevice.hasWifiCountry"></a>
1875 <h4>BaseDevice.hasWifiCountry</h4> 1873 <h4>BaseDevice.hasWifiCountry</h4>
1876 <b>hasWifiCountry</b>(<i></i>) 1874 <b>hasWifiCountry</b>(<i></i>)
1877
1878 <p> 1875 <p>
1879 Public method to check, if the device (potentially) has support to set the 1876 Public method to check, if the device (potentially) has support to set the
1880 WiFi country. 1877 WiFi country.
1881 </p> 1878 </p>
1879
1882 <dl> 1880 <dl>
1883 <dt>Return:</dt> 1881 <dt>Return:</dt>
1884 <dd> 1882 <dd>
1885 flag indicating the support of WiFi country 1883 flag indicating the support of WiFi country
1886 </dd> 1884 </dd>
1892 </dd> 1890 </dd>
1893 </dl> 1891 </dl>
1894 <a NAME="BaseDevice.isLanConnected" ID="BaseDevice.isLanConnected"></a> 1892 <a NAME="BaseDevice.isLanConnected" ID="BaseDevice.isLanConnected"></a>
1895 <h4>BaseDevice.isLanConnected</h4> 1893 <h4>BaseDevice.isLanConnected</h4>
1896 <b>isLanConnected</b>(<i></i>) 1894 <b>isLanConnected</b>(<i></i>)
1897
1898 <p> 1895 <p>
1899 Public method to check the LAN connection status. 1896 Public method to check the LAN connection status.
1900 </p> 1897 </p>
1898
1901 <dl> 1899 <dl>
1902 <dt>Return:</dt> 1900 <dt>Return:</dt>
1903 <dd> 1901 <dd>
1904 flag indicating that the device is connected to the LAN 1902 flag indicating that the device is connected to the LAN
1905 </dd> 1903 </dd>
1911 </dd> 1909 </dd>
1912 </dl> 1910 </dl>
1913 <a NAME="BaseDevice.isNetworkConnected" ID="BaseDevice.isNetworkConnected"></a> 1911 <a NAME="BaseDevice.isNetworkConnected" ID="BaseDevice.isNetworkConnected"></a>
1914 <h4>BaseDevice.isNetworkConnected</h4> 1912 <h4>BaseDevice.isNetworkConnected</h4>
1915 <b>isNetworkConnected</b>(<i></i>) 1913 <b>isNetworkConnected</b>(<i></i>)
1916
1917 <p> 1914 <p>
1918 Public method to check, if the network interface (WiFi or Ethernet) is 1915 Public method to check, if the network interface (WiFi or Ethernet) is
1919 connected. 1916 connected.
1920 </p> 1917 </p>
1918
1921 <dl> 1919 <dl>
1922 <dt>Return:</dt> 1920 <dt>Return:</dt>
1923 <dd> 1921 <dd>
1924 flag indicating the network connection state 1922 flag indicating the network connection state
1925 </dd> 1923 </dd>
1931 </dd> 1929 </dd>
1932 </dl> 1930 </dl>
1933 <a NAME="BaseDevice.isWifiApConnected" ID="BaseDevice.isWifiApConnected"></a> 1931 <a NAME="BaseDevice.isWifiApConnected" ID="BaseDevice.isWifiApConnected"></a>
1934 <h4>BaseDevice.isWifiApConnected</h4> 1932 <h4>BaseDevice.isWifiApConnected</h4>
1935 <b>isWifiApConnected</b>(<i></i>) 1933 <b>isWifiApConnected</b>(<i></i>)
1936
1937 <p> 1934 <p>
1938 Public method to check the WiFi connection status as access point. 1935 Public method to check the WiFi connection status as access point.
1939 </p> 1936 </p>
1937
1940 <dl> 1938 <dl>
1941 <dt>Return:</dt> 1939 <dt>Return:</dt>
1942 <dd> 1940 <dd>
1943 flag indicating the WiFi connection status 1941 flag indicating the WiFi connection status
1944 </dd> 1942 </dd>
1950 </dd> 1948 </dd>
1951 </dl> 1949 </dl>
1952 <a NAME="BaseDevice.isWifiClientConnected" ID="BaseDevice.isWifiClientConnected"></a> 1950 <a NAME="BaseDevice.isWifiClientConnected" ID="BaseDevice.isWifiClientConnected"></a>
1953 <h4>BaseDevice.isWifiClientConnected</h4> 1951 <h4>BaseDevice.isWifiClientConnected</h4>
1954 <b>isWifiClientConnected</b>(<i></i>) 1952 <b>isWifiClientConnected</b>(<i></i>)
1955
1956 <p> 1953 <p>
1957 Public method to check the WiFi connection status as client. 1954 Public method to check the WiFi connection status as client.
1958 </p> 1955 </p>
1956
1959 <dl> 1957 <dl>
1960 <dt>Return:</dt> 1958 <dt>Return:</dt>
1961 <dd> 1959 <dd>
1962 flag indicating the WiFi connection status 1960 flag indicating the WiFi connection status
1963 </dd> 1961 </dd>
1969 </dd> 1967 </dd>
1970 </dl> 1968 </dl>
1971 <a NAME="BaseDevice.lls" ID="BaseDevice.lls"></a> 1969 <a NAME="BaseDevice.lls" ID="BaseDevice.lls"></a>
1972 <h4>BaseDevice.lls</h4> 1970 <h4>BaseDevice.lls</h4>
1973 <b>lls</b>(<i>dirname="", fullstat=False, showHidden=False</i>) 1971 <b>lls</b>(<i>dirname="", fullstat=False, showHidden=False</i>)
1974
1975 <p> 1972 <p>
1976 Public method to get a long directory listing of the connected device 1973 Public method to get a long directory listing of the connected device
1977 including meta data. 1974 including meta data.
1978 </p> 1975 </p>
1976
1979 <dl> 1977 <dl>
1980 1978
1981 <dt><i>dirname</i> (str)</dt> 1979 <dt><i>dirname</i> (str)</dt>
1982 <dd> 1980 <dd>
1983 name of the directory to be listed 1981 name of the directory to be listed
2014 </dd> 2012 </dd>
2015 </dl> 2013 </dl>
2016 <a NAME="BaseDevice.ls" ID="BaseDevice.ls"></a> 2014 <a NAME="BaseDevice.ls" ID="BaseDevice.ls"></a>
2017 <h4>BaseDevice.ls</h4> 2015 <h4>BaseDevice.ls</h4>
2018 <b>ls</b>(<i>dirname=""</i>) 2016 <b>ls</b>(<i>dirname=""</i>)
2019
2020 <p> 2017 <p>
2021 Public method to get a directory listing of the connected device. 2018 Public method to get a directory listing of the connected device.
2022 </p> 2019 </p>
2020
2023 <dl> 2021 <dl>
2024 2022
2025 <dt><i>dirname</i> (str)</dt> 2023 <dt><i>dirname</i> (str)</dt>
2026 <dd> 2024 <dd>
2027 name of the directory to be listed 2025 name of the directory to be listed
2047 </dd> 2045 </dd>
2048 </dl> 2046 </dl>
2049 <a NAME="BaseDevice.mipInstall" ID="BaseDevice.mipInstall"></a> 2047 <a NAME="BaseDevice.mipInstall" ID="BaseDevice.mipInstall"></a>
2050 <h4>BaseDevice.mipInstall</h4> 2048 <h4>BaseDevice.mipInstall</h4>
2051 <b>mipInstall</b>(<i>package, index=None, target=None, version=None, mpy=True</i>) 2049 <b>mipInstall</b>(<i>package, index=None, target=None, version=None, mpy=True</i>)
2052
2053 <p> 2050 <p>
2054 Public method to install packages using 'mip'. 2051 Public method to install packages using 'mip'.
2055 </p> 2052 </p>
2053
2056 <dl> 2054 <dl>
2057 2055
2058 <dt><i>package</i> (str)</dt> 2056 <dt><i>package</i> (str)</dt>
2059 <dd> 2057 <dd>
2060 package name 2058 package name
2089 </dd> 2087 </dd>
2090 </dl> 2088 </dl>
2091 <a NAME="BaseDevice.mkdir" ID="BaseDevice.mkdir"></a> 2089 <a NAME="BaseDevice.mkdir" ID="BaseDevice.mkdir"></a>
2092 <h4>BaseDevice.mkdir</h4> 2090 <h4>BaseDevice.mkdir</h4>
2093 <b>mkdir</b>(<i>dirname</i>) 2091 <b>mkdir</b>(<i>dirname</i>)
2094
2095 <p> 2092 <p>
2096 Public method to create a new directory. 2093 Public method to create a new directory.
2097 </p> 2094 </p>
2095
2098 <dl> 2096 <dl>
2099 2097
2100 <dt><i>dirname</i> (str)</dt> 2098 <dt><i>dirname</i> (str)</dt>
2101 <dd> 2099 <dd>
2102 name of the directory to create 2100 name of the directory to create
2110 </dd> 2108 </dd>
2111 </dl> 2109 </dl>
2112 <a NAME="BaseDevice.put" ID="BaseDevice.put"></a> 2110 <a NAME="BaseDevice.put" ID="BaseDevice.put"></a>
2113 <h4>BaseDevice.put</h4> 2111 <h4>BaseDevice.put</h4>
2114 <b>put</b>(<i>hostFileName, deviceFileName=None</i>) 2112 <b>put</b>(<i>hostFileName, deviceFileName=None</i>)
2115
2116 <p> 2113 <p>
2117 Public method to copy a local file to the connected device. 2114 Public method to copy a local file to the connected device.
2118 </p> 2115 </p>
2116
2119 <dl> 2117 <dl>
2120 2118
2121 <dt><i>hostFileName</i> (str)</dt> 2119 <dt><i>hostFileName</i> (str)</dt>
2122 <dd> 2120 <dd>
2123 name of the file to be copied 2121 name of the file to be copied
2147 </dd> 2145 </dd>
2148 </dl> 2146 </dl>
2149 <a NAME="BaseDevice.putData" ID="BaseDevice.putData"></a> 2147 <a NAME="BaseDevice.putData" ID="BaseDevice.putData"></a>
2150 <h4>BaseDevice.putData</h4> 2148 <h4>BaseDevice.putData</h4>
2151 <b>putData</b>(<i>deviceFileName, content</i>) 2149 <b>putData</b>(<i>deviceFileName, content</i>)
2152
2153 <p> 2150 <p>
2154 Public method to write the given data to the connected device. 2151 Public method to write the given data to the connected device.
2155 </p> 2152 </p>
2153
2156 <dl> 2154 <dl>
2157 2155
2158 <dt><i>deviceFileName</i> (str)</dt> 2156 <dt><i>deviceFileName</i> (str)</dt>
2159 <dd> 2157 <dd>
2160 name of the file to write to 2158 name of the file to write to
2184 </dd> 2182 </dd>
2185 </dl> 2183 </dl>
2186 <a NAME="BaseDevice.pwd" ID="BaseDevice.pwd"></a> 2184 <a NAME="BaseDevice.pwd" ID="BaseDevice.pwd"></a>
2187 <h4>BaseDevice.pwd</h4> 2185 <h4>BaseDevice.pwd</h4>
2188 <b>pwd</b>(<i></i>) 2186 <b>pwd</b>(<i></i>)
2189
2190 <p> 2187 <p>
2191 Public method to get the current directory of the connected device. 2188 Public method to get the current directory of the connected device.
2192 </p> 2189 </p>
2190
2193 <dl> 2191 <dl>
2194 <dt>Return:</dt> 2192 <dt>Return:</dt>
2195 <dd> 2193 <dd>
2196 current directory 2194 current directory
2197 </dd> 2195 </dd>
2210 </dd> 2208 </dd>
2211 </dl> 2209 </dl>
2212 <a NAME="BaseDevice.removeCredentials" ID="BaseDevice.removeCredentials"></a> 2210 <a NAME="BaseDevice.removeCredentials" ID="BaseDevice.removeCredentials"></a>
2213 <h4>BaseDevice.removeCredentials</h4> 2211 <h4>BaseDevice.removeCredentials</h4>
2214 <b>removeCredentials</b>(<i></i>) 2212 <b>removeCredentials</b>(<i></i>)
2215
2216 <p> 2213 <p>
2217 Public method to remove the saved credentials from the connected device. 2214 Public method to remove the saved credentials from the connected device.
2218 </p> 2215 </p>
2216
2219 <dl> 2217 <dl>
2220 <dt>Return:</dt> 2218 <dt>Return:</dt>
2221 <dd> 2219 <dd>
2222 tuple containing a flag indicating success and an error message 2220 tuple containing a flag indicating success and an error message
2223 </dd> 2221 </dd>
2229 </dd> 2227 </dd>
2230 </dl> 2228 </dl>
2231 <a NAME="BaseDevice.removeLanAutoConnect" ID="BaseDevice.removeLanAutoConnect"></a> 2229 <a NAME="BaseDevice.removeLanAutoConnect" ID="BaseDevice.removeLanAutoConnect"></a>
2232 <h4>BaseDevice.removeLanAutoConnect</h4> 2230 <h4>BaseDevice.removeLanAutoConnect</h4>
2233 <b>removeLanAutoConnect</b>(<i></i>) 2231 <b>removeLanAutoConnect</b>(<i></i>)
2234
2235 <p> 2232 <p>
2236 Public method to remove the saved IPv4 parameters from the connected device. 2233 Public method to remove the saved IPv4 parameters from the connected device.
2237 </p> 2234 </p>
2238 <p> 2235 <p>
2239 Note: This disables the LAN auto-connect feature. 2236 Note: This disables the LAN auto-connect feature.
2240 </p> 2237 </p>
2238
2241 <dl> 2239 <dl>
2242 <dt>Return:</dt> 2240 <dt>Return:</dt>
2243 <dd> 2241 <dd>
2244 tuple containing a flag indicating success and an error message 2242 tuple containing a flag indicating success and an error message
2245 </dd> 2243 </dd>
2251 </dd> 2249 </dd>
2252 </dl> 2250 </dl>
2253 <a NAME="BaseDevice.rm" ID="BaseDevice.rm"></a> 2251 <a NAME="BaseDevice.rm" ID="BaseDevice.rm"></a>
2254 <h4>BaseDevice.rm</h4> 2252 <h4>BaseDevice.rm</h4>
2255 <b>rm</b>(<i>filename</i>) 2253 <b>rm</b>(<i>filename</i>)
2256
2257 <p> 2254 <p>
2258 Public method to remove a file from the connected device. 2255 Public method to remove a file from the connected device.
2259 </p> 2256 </p>
2257
2260 <dl> 2258 <dl>
2261 2259
2262 <dt><i>filename</i> (str)</dt> 2260 <dt><i>filename</i> (str)</dt>
2263 <dd> 2261 <dd>
2264 name of the file to be removed 2262 name of the file to be removed
2272 </dd> 2270 </dd>
2273 </dl> 2271 </dl>
2274 <a NAME="BaseDevice.rmdir" ID="BaseDevice.rmdir"></a> 2272 <a NAME="BaseDevice.rmdir" ID="BaseDevice.rmdir"></a>
2275 <h4>BaseDevice.rmdir</h4> 2273 <h4>BaseDevice.rmdir</h4>
2276 <b>rmdir</b>(<i>dirname</i>) 2274 <b>rmdir</b>(<i>dirname</i>)
2277
2278 <p> 2275 <p>
2279 Public method to remove a directory. 2276 Public method to remove a directory.
2280 </p> 2277 </p>
2278
2281 <dl> 2279 <dl>
2282 2280
2283 <dt><i>dirname</i> (str)</dt> 2281 <dt><i>dirname</i> (str)</dt>
2284 <dd> 2282 <dd>
2285 name of the directory to be removed 2283 name of the directory to be removed
2293 </dd> 2291 </dd>
2294 </dl> 2292 </dl>
2295 <a NAME="BaseDevice.rmrf" ID="BaseDevice.rmrf"></a> 2293 <a NAME="BaseDevice.rmrf" ID="BaseDevice.rmrf"></a>
2296 <h4>BaseDevice.rmrf</h4> 2294 <h4>BaseDevice.rmrf</h4>
2297 <b>rmrf</b>(<i>name, recursive=False, force=False</i>) 2295 <b>rmrf</b>(<i>name, recursive=False, force=False</i>)
2298
2299 <p> 2296 <p>
2300 Public method to remove a file or directory recursively. 2297 Public method to remove a file or directory recursively.
2301 </p> 2298 </p>
2299
2302 <dl> 2300 <dl>
2303 2301
2304 <dt><i>name</i> (str)</dt> 2302 <dt><i>name</i> (str)</dt>
2305 <dd> 2303 <dd>
2306 of the file or directory to remove 2304 of the file or directory to remove
2334 </dd> 2332 </dd>
2335 </dl> 2333 </dl>
2336 <a NAME="BaseDevice.runScript" ID="BaseDevice.runScript"></a> 2334 <a NAME="BaseDevice.runScript" ID="BaseDevice.runScript"></a>
2337 <h4>BaseDevice.runScript</h4> 2335 <h4>BaseDevice.runScript</h4>
2338 <b>runScript</b>(<i>script</i>) 2336 <b>runScript</b>(<i>script</i>)
2339
2340 <p> 2337 <p>
2341 Public method to run the given Python script. 2338 Public method to run the given Python script.
2342 </p> 2339 </p>
2340
2343 <dl> 2341 <dl>
2344 2342
2345 <dt><i>script</i> (str)</dt> 2343 <dt><i>script</i> (str)</dt>
2346 <dd> 2344 <dd>
2347 script to be executed 2345 script to be executed
2348 </dd> 2346 </dd>
2349 </dl> 2347 </dl>
2350 <a NAME="BaseDevice.scanNetworks" ID="BaseDevice.scanNetworks"></a> 2348 <a NAME="BaseDevice.scanNetworks" ID="BaseDevice.scanNetworks"></a>
2351 <h4>BaseDevice.scanNetworks</h4> 2349 <h4>BaseDevice.scanNetworks</h4>
2352 <b>scanNetworks</b>(<i></i>) 2350 <b>scanNetworks</b>(<i></i>)
2353
2354 <p> 2351 <p>
2355 Public method to scan for available WiFi networks. 2352 Public method to scan for available WiFi networks.
2356 </p> 2353 </p>
2354
2357 <dl> 2355 <dl>
2358 <dt>Return:</dt> 2356 <dt>Return:</dt>
2359 <dd> 2357 <dd>
2360 tuple containing the list of available networks as a tuple of 'Name', 2358 tuple containing the list of available networks as a tuple of 'Name',
2361 'MAC-Address', 'channel', 'RSSI' and 'security' and an error string 2359 'MAC-Address', 'channel', 'RSSI' and 'security' and an error string
2368 </dd> 2366 </dd>
2369 </dl> 2367 </dl>
2370 <a NAME="BaseDevice.selectDeviceDirectory" ID="BaseDevice.selectDeviceDirectory"></a> 2368 <a NAME="BaseDevice.selectDeviceDirectory" ID="BaseDevice.selectDeviceDirectory"></a>
2371 <h4>BaseDevice.selectDeviceDirectory</h4> 2369 <h4>BaseDevice.selectDeviceDirectory</h4>
2372 <b>selectDeviceDirectory</b>(<i>deviceDirectories</i>) 2370 <b>selectDeviceDirectory</b>(<i>deviceDirectories</i>)
2373
2374 <p> 2371 <p>
2375 Public method to select the device directory from a list of detected 2372 Public method to select the device directory from a list of detected
2376 ones. 2373 ones.
2377 </p> 2374 </p>
2375
2378 <dl> 2376 <dl>
2379 2377
2380 <dt><i>deviceDirectories</i> (list of str)</dt> 2378 <dt><i>deviceDirectories</i> (list of str)</dt>
2381 <dd> 2379 <dd>
2382 list of directories to select from 2380 list of directories to select from
2395 </dd> 2393 </dd>
2396 </dl> 2394 </dl>
2397 <a NAME="BaseDevice.sendCommands" ID="BaseDevice.sendCommands"></a> 2395 <a NAME="BaseDevice.sendCommands" ID="BaseDevice.sendCommands"></a>
2398 <h4>BaseDevice.sendCommands</h4> 2396 <h4>BaseDevice.sendCommands</h4>
2399 <b>sendCommands</b>(<i>commandsList</i>) 2397 <b>sendCommands</b>(<i>commandsList</i>)
2400
2401 <p> 2398 <p>
2402 Public method to send a list of commands to the device. 2399 Public method to send a list of commands to the device.
2403 </p> 2400 </p>
2401
2404 <dl> 2402 <dl>
2405 2403
2406 <dt><i>commandsList</i> (list of str)</dt> 2404 <dt><i>commandsList</i> (list of str)</dt>
2407 <dd> 2405 <dd>
2408 list of commands to be sent to the device 2406 list of commands to be sent to the device
2409 </dd> 2407 </dd>
2410 </dl> 2408 </dl>
2411 <a NAME="BaseDevice.setButtons" ID="BaseDevice.setButtons"></a> 2409 <a NAME="BaseDevice.setButtons" ID="BaseDevice.setButtons"></a>
2412 <h4>BaseDevice.setButtons</h4> 2410 <h4>BaseDevice.setButtons</h4>
2413 <b>setButtons</b>(<i></i>) 2411 <b>setButtons</b>(<i></i>)
2414
2415 <p> 2412 <p>
2416 Public method to enable the supported action buttons. 2413 Public method to enable the supported action buttons.
2417 </p> 2414 </p>
2415
2418 <a NAME="BaseDevice.setConnected" ID="BaseDevice.setConnected"></a> 2416 <a NAME="BaseDevice.setConnected" ID="BaseDevice.setConnected"></a>
2419 <h4>BaseDevice.setConnected</h4> 2417 <h4>BaseDevice.setConnected</h4>
2420 <b>setConnected</b>(<i>connected</i>) 2418 <b>setConnected</b>(<i>connected</i>)
2421
2422 <p> 2419 <p>
2423 Public method to set the connection state. 2420 Public method to set the connection state.
2424 </p> 2421 </p>
2425 <p> 2422 <p>
2426 Note: This method can be overwritten to perform actions upon connect 2423 Note: This method can be overwritten to perform actions upon connect
2427 or disconnect of the device. 2424 or disconnect of the device.
2428 </p> 2425 </p>
2426
2429 <dl> 2427 <dl>
2430 2428
2431 <dt><i>connected</i> (bool)</dt> 2429 <dt><i>connected</i> (bool)</dt>
2432 <dd> 2430 <dd>
2433 connection state 2431 connection state
2434 </dd> 2432 </dd>
2435 </dl> 2433 </dl>
2436 <a NAME="BaseDevice.setFileManager" ID="BaseDevice.setFileManager"></a> 2434 <a NAME="BaseDevice.setFileManager" ID="BaseDevice.setFileManager"></a>
2437 <h4>BaseDevice.setFileManager</h4> 2435 <h4>BaseDevice.setFileManager</h4>
2438 <b>setFileManager</b>(<i>on</i>) 2436 <b>setFileManager</b>(<i>on</i>)
2439
2440 <p> 2437 <p>
2441 Public method to set the File Manager status and dependent status. 2438 Public method to set the File Manager status and dependent status.
2442 </p> 2439 </p>
2440
2443 <dl> 2441 <dl>
2444 2442
2445 <dt><i>on</i> (bool)</dt> 2443 <dt><i>on</i> (bool)</dt>
2446 <dd> 2444 <dd>
2447 flag indicating the active status 2445 flag indicating the active status
2448 </dd> 2446 </dd>
2449 </dl> 2447 </dl>
2450 <a NAME="BaseDevice.setNetworkTime" ID="BaseDevice.setNetworkTime"></a> 2448 <a NAME="BaseDevice.setNetworkTime" ID="BaseDevice.setNetworkTime"></a>
2451 <h4>BaseDevice.setNetworkTime</h4> 2449 <h4>BaseDevice.setNetworkTime</h4>
2452 <b>setNetworkTime</b>(<i>server="pool.ntp.org", tzOffset=0, timeout=10</i>) 2450 <b>setNetworkTime</b>(<i>server="pool.ntp.org", tzOffset=0, timeout=10</i>)
2453
2454 <p> 2451 <p>
2455 Public method to set the time to the network time retrieved from an 2452 Public method to set the time to the network time retrieved from an
2456 NTP server. 2453 NTP server.
2457 </p> 2454 </p>
2455
2458 <dl> 2456 <dl>
2459 2457
2460 <dt><i>server</i> (str (optional))</dt> 2458 <dt><i>server</i> (str (optional))</dt>
2461 <dd> 2459 <dd>
2462 name of the NTP server to get the network time from 2460 name of the NTP server to get the network time from
2485 </dd> 2483 </dd>
2486 </dl> 2484 </dl>
2487 <a NAME="BaseDevice.setPlotter" ID="BaseDevice.setPlotter"></a> 2485 <a NAME="BaseDevice.setPlotter" ID="BaseDevice.setPlotter"></a>
2488 <h4>BaseDevice.setPlotter</h4> 2486 <h4>BaseDevice.setPlotter</h4>
2489 <b>setPlotter</b>(<i>on</i>) 2487 <b>setPlotter</b>(<i>on</i>)
2490
2491 <p> 2488 <p>
2492 Public method to set the Plotter status and dependent status. 2489 Public method to set the Plotter status and dependent status.
2493 </p> 2490 </p>
2491
2494 <dl> 2492 <dl>
2495 2493
2496 <dt><i>on</i> (bool)</dt> 2494 <dt><i>on</i> (bool)</dt>
2497 <dd> 2495 <dd>
2498 flag indicating the active status 2496 flag indicating the active status
2499 </dd> 2497 </dd>
2500 </dl> 2498 </dl>
2501 <a NAME="BaseDevice.setRepl" ID="BaseDevice.setRepl"></a> 2499 <a NAME="BaseDevice.setRepl" ID="BaseDevice.setRepl"></a>
2502 <h4>BaseDevice.setRepl</h4> 2500 <h4>BaseDevice.setRepl</h4>
2503 <b>setRepl</b>(<i>on</i>) 2501 <b>setRepl</b>(<i>on</i>)
2504
2505 <p> 2502 <p>
2506 Public method to set the REPL status and dependent status. 2503 Public method to set the REPL status and dependent status.
2507 </p> 2504 </p>
2505
2508 <dl> 2506 <dl>
2509 2507
2510 <dt><i>on</i> (bool)</dt> 2508 <dt><i>on</i> (bool)</dt>
2511 <dd> 2509 <dd>
2512 flag indicating the active status 2510 flag indicating the active status
2513 </dd> 2511 </dd>
2514 </dl> 2512 </dl>
2515 <a NAME="BaseDevice.setWorkspace" ID="BaseDevice.setWorkspace"></a> 2513 <a NAME="BaseDevice.setWorkspace" ID="BaseDevice.setWorkspace"></a>
2516 <h4>BaseDevice.setWorkspace</h4> 2514 <h4>BaseDevice.setWorkspace</h4>
2517 <b>setWorkspace</b>(<i>workspacePath</i>) 2515 <b>setWorkspace</b>(<i>workspacePath</i>)
2518
2519 <p> 2516 <p>
2520 Public method to set the device workspace directory. 2517 Public method to set the device workspace directory.
2521 </p> 2518 </p>
2519
2522 <dl> 2520 <dl>
2523 2521
2524 <dt><i>workspacePath</i> (str)</dt> 2522 <dt><i>workspacePath</i> (str)</dt>
2525 <dd> 2523 <dd>
2526 directory to be used for saving files 2524 directory to be used for saving files
2527 </dd> 2525 </dd>
2528 </dl> 2526 </dl>
2529 <a NAME="BaseDevice.startAccessPoint" ID="BaseDevice.startAccessPoint"></a> 2527 <a NAME="BaseDevice.startAccessPoint" ID="BaseDevice.startAccessPoint"></a>
2530 <h4>BaseDevice.startAccessPoint</h4> 2528 <h4>BaseDevice.startAccessPoint</h4>
2531 <b>startAccessPoint</b>(<i>ssid, security=None, password=None, hostname=None, ifconfig=None, </i>) 2529 <b>startAccessPoint</b>(<i>ssid, security=None, password=None, hostname=None, ifconfig=None, </i>)
2532
2533 <p> 2530 <p>
2534 Public method to start the access point interface. 2531 Public method to start the access point interface.
2535 </p> 2532 </p>
2533
2536 <dl> 2534 <dl>
2537 2535
2538 <dt><i>ssid</i> (str)</dt> 2536 <dt><i>ssid</i> (str)</dt>
2539 <dd> 2537 <dd>
2540 SSID of the access point 2538 SSID of the access point
2570 </dd> 2568 </dd>
2571 </dl> 2569 </dl>
2572 <a NAME="BaseDevice.stopAccessPoint" ID="BaseDevice.stopAccessPoint"></a> 2570 <a NAME="BaseDevice.stopAccessPoint" ID="BaseDevice.stopAccessPoint"></a>
2573 <h4>BaseDevice.stopAccessPoint</h4> 2571 <h4>BaseDevice.stopAccessPoint</h4>
2574 <b>stopAccessPoint</b>(<i></i>) 2572 <b>stopAccessPoint</b>(<i></i>)
2575
2576 <p> 2573 <p>
2577 Public method to stop the access point interface. 2574 Public method to stop the access point interface.
2578 </p> 2575 </p>
2576
2579 <dl> 2577 <dl>
2580 <dt>Return:</dt> 2578 <dt>Return:</dt>
2581 <dd> 2579 <dd>
2582 tuple containg a flag indicating success and an error message 2580 tuple containg a flag indicating success and an error message
2583 </dd> 2581 </dd>
2589 </dd> 2587 </dd>
2590 </dl> 2588 </dl>
2591 <a NAME="BaseDevice.submitMode" ID="BaseDevice.submitMode"></a> 2589 <a NAME="BaseDevice.submitMode" ID="BaseDevice.submitMode"></a>
2592 <h4>BaseDevice.submitMode</h4> 2590 <h4>BaseDevice.submitMode</h4>
2593 <b>submitMode</b>(<i></i>) 2591 <b>submitMode</b>(<i></i>)
2594
2595 <p> 2592 <p>
2596 Public method to get the submit mode of the device. 2593 Public method to get the submit mode of the device.
2597 </p> 2594 </p>
2595
2598 <dl> 2596 <dl>
2599 <dt>Return:</dt> 2597 <dt>Return:</dt>
2600 <dd> 2598 <dd>
2601 submit mode 2599 submit mode
2602 </dd> 2600 </dd>
2608 </dd> 2606 </dd>
2609 </dl> 2607 </dl>
2610 <a NAME="BaseDevice.supportsLocalFileAccess" ID="BaseDevice.supportsLocalFileAccess"></a> 2608 <a NAME="BaseDevice.supportsLocalFileAccess" ID="BaseDevice.supportsLocalFileAccess"></a>
2611 <h4>BaseDevice.supportsLocalFileAccess</h4> 2609 <h4>BaseDevice.supportsLocalFileAccess</h4>
2612 <b>supportsLocalFileAccess</b>(<i></i>) 2610 <b>supportsLocalFileAccess</b>(<i></i>)
2613
2614 <p> 2611 <p>
2615 Public method to indicate file access via a local directory. 2612 Public method to indicate file access via a local directory.
2616 </p> 2613 </p>
2614
2617 <dl> 2615 <dl>
2618 <dt>Return:</dt> 2616 <dt>Return:</dt>
2619 <dd> 2617 <dd>
2620 flag indicating file access via local directory 2618 flag indicating file access via local directory
2621 </dd> 2619 </dd>
2627 </dd> 2625 </dd>
2628 </dl> 2626 </dl>
2629 <a NAME="BaseDevice.syncTime" ID="BaseDevice.syncTime"></a> 2627 <a NAME="BaseDevice.syncTime" ID="BaseDevice.syncTime"></a>
2630 <h4>BaseDevice.syncTime</h4> 2628 <h4>BaseDevice.syncTime</h4>
2631 <b>syncTime</b>(<i>deviceType, hasCPy=False</i>) 2629 <b>syncTime</b>(<i>deviceType, hasCPy=False</i>)
2632
2633 <p> 2630 <p>
2634 Public method to set the time of the connected device to the local 2631 Public method to set the time of the connected device to the local
2635 computer's time. 2632 computer's time.
2636 </p> 2633 </p>
2634
2637 <dl> 2635 <dl>
2638 2636
2639 <dt><i>deviceType</i> (str)</dt> 2637 <dt><i>deviceType</i> (str)</dt>
2640 <dd> 2638 <dd>
2641 type of board to sync time to 2639 type of board to sync time to
2654 </dd> 2652 </dd>
2655 </dl> 2653 </dl>
2656 <a NAME="BaseDevice.upipInstall" ID="BaseDevice.upipInstall"></a> 2654 <a NAME="BaseDevice.upipInstall" ID="BaseDevice.upipInstall"></a>
2657 <h4>BaseDevice.upipInstall</h4> 2655 <h4>BaseDevice.upipInstall</h4>
2658 <b>upipInstall</b>(<i>packages</i>) 2656 <b>upipInstall</b>(<i>packages</i>)
2659
2660 <p> 2657 <p>
2661 Public method to install packages using 'upip'. 2658 Public method to install packages using 'upip'.
2662 </p> 2659 </p>
2660
2663 <dl> 2661 <dl>
2664 2662
2665 <dt><i>packages</i> (list of str)</dt> 2663 <dt><i>packages</i> (list of str)</dt>
2666 <dd> 2664 <dd>
2667 list of package names 2665 list of package names
2680 </dd> 2678 </dd>
2681 </dl> 2679 </dl>
2682 <a NAME="BaseDevice.writeCredentials" ID="BaseDevice.writeCredentials"></a> 2680 <a NAME="BaseDevice.writeCredentials" ID="BaseDevice.writeCredentials"></a>
2683 <h4>BaseDevice.writeCredentials</h4> 2681 <h4>BaseDevice.writeCredentials</h4>
2684 <b>writeCredentials</b>(<i>ssid, password, hostname, country</i>) 2682 <b>writeCredentials</b>(<i>ssid, password, hostname, country</i>)
2685
2686 <p> 2683 <p>
2687 Public method to write the given credentials to the connected device and modify 2684 Public method to write the given credentials to the connected device and modify
2688 the start script to connect automatically. 2685 the start script to connect automatically.
2689 </p> 2686 </p>
2687
2690 <dl> 2688 <dl>
2691 2689
2692 <dt><i>ssid</i> (str)</dt> 2690 <dt><i>ssid</i> (str)</dt>
2693 <dd> 2691 <dd>
2694 SSID of the network to connect to 2692 SSID of the network to connect to
2719 </dd> 2717 </dd>
2720 </dl> 2718 </dl>
2721 <a NAME="BaseDevice.writeLanAutoConnect" ID="BaseDevice.writeLanAutoConnect"></a> 2719 <a NAME="BaseDevice.writeLanAutoConnect" ID="BaseDevice.writeLanAutoConnect"></a>
2722 <h4>BaseDevice.writeLanAutoConnect</h4> 2720 <h4>BaseDevice.writeLanAutoConnect</h4>
2723 <b>writeLanAutoConnect</b>(<i>config, hostname</i>) 2721 <b>writeLanAutoConnect</b>(<i>config, hostname</i>)
2724
2725 <p> 2722 <p>
2726 Public method to generate a script and associated configuration to connect the 2723 Public method to generate a script and associated configuration to connect the
2727 device to the LAN during boot time. 2724 device to the LAN during boot time.
2728 </p> 2725 </p>
2726
2729 <dl> 2727 <dl>
2730 2728
2731 <dt><i>config</i> (str or tuple of (str, str, str, str))</dt> 2729 <dt><i>config</i> (str or tuple of (str, str, str, str))</dt>
2732 <dd> 2730 <dd>
2733 configuration for the connection (either the string 'dhcp' 2731 configuration for the connection (either the string 'dhcp'

eric ide

mercurial