Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Bertl M0 M3 Programmierung
- Vom Scratch Bertl zu anderen Programmiersprachen transformieren, wie JavaScript, Python, PHP, Lua, Dart und weiter nach Bertlblockly
- Demo mbed Source für M3 Board oder Download Bin-Datei
while (1) { wifi.scanf("%s", str); //wifi.printf("str: %s\n", str); if(str[0] == 'M' && str[1] == 'V') // 1. GET--> Serving Requests part in http-server Move(); // ?reqest=MV else if(str[0] == 'T') { if (str[1] == 'L') TurnLeft(); else if (str[1] == 'R') TurnRight(); } else { // 3. GET--> Serving M0 Board part in http-server if(str[7] == '1') { // ?M0=SD&chan=04&state=1 --> M0_SD_04_1 LedD1 = (str[9] -'0'); wifi.printf( "LedD1\n"); } if(str[7] == '2') LedD2 = (str[9] -'0'); if(str[7] == '3') LedD3 = (str[9] -'0'); if(str[7] == '4') LedD4 = (str[9] -'0'); if(str[3] == 'G') wifi.printf( "Temp: %f\n", sensor.read()); } // 2. GET-->Serving Web Pages for config and reset
Es gibt grundsätzlich 3 Teile für den Request am Server die hier zu finden sind.