|
Forum Index : Microcontroller and PC projects : Webmite
| Page 1 of 2 |
|||||
| Author | Message | ||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
I haven't looked at webmite for years. Quick question. Can a Webmite operate stand alone ? (access point), or can it only work in an existing WIFI network.? Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
Hi Volhout I really like your “STONED” logo. As far as I know, WebMite 7.00.00 cannot function as an access point. It can only connect to an existing Wi-Fi network as a client (STA). net/WiFi.c:246, :255, and :307 always call cyw43_arch_enable_sta_mode(). After that, it connects using OPTION WIFI with the SSID and password via cyw43_arch_wifi_connect_timeout_ms (WiFi.c:270). cyw43_arch_enable_ap_mode, CYW43_ITF_AP, and a DHCP server do not exist anywhere in the entire MMBasic code. Here’s what you can do instead: Use an ESP32 as an access point (XIAO C5/C6 or S3 devices). Build your own patch: The CYW43 driver in the Pico SDK supports AP mode, and the pico-examples (access_point) include a ready-made DHCP and DNS server. To do this, you’d need, for example, a new OPTION WIFI AP ..., a call to enable_ap_mode instead of sta_mode, and the DHCP server. Regards Gerad |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Thanks !! I thought so, could not find any reference in the user manuals to access point mode. The functionality is in the SDK, but it was never implemented in MMBasic (I think so since SCOPPY uses it) on the PICO W (2040) plaform. I will probably go the ESP route, since that is for now the easiest route, and it has to work before Christmas.... only 3 weeks. Maybe I'll even try to solve it in ANNEX. Simple web app. I want no vulnerable devices on my WIFI network. Otherwise Webmite would be my choice. Volhout Edited 2026-11-30 19:39 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
What do you mean by “I don't want any vulnerable devices on my Wi-Fi network”? Do you consider an ESP32C5/C6 to be vulnerable? |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, I may be not correctly informed. But I assume anything that I write the code for myself, is vulnerable. Since I do not have the knowledge how to make it secure. So the ESP32 will not be joined in my WIFI network, but it will be stand alone. And when I want to control it I will change the network on my phone, and log into it (or use an old phone (without SIM) as a fixed "indoor unit" for the wireless ESP32 outside. Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, I may be not correctly informed. But I assume anything that I write the code for myself, is vulnerable. Since I do not have the knowledge how to make it secure. So the ESP32 will not be joined in my WIFI network, but it will be stand alone. And when I want to control it I will change the network on my phone, and log into it (or use an old phone (without SIM) as a fixed "indoor unit" for the wireless ESP32 outside. Volhout P.S. the stand alone unit does not need to be secure. Worst that can happen is that all my christmas light stop working. Edited 2026-11-30 20:53 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
Well, there's nothing more to add to your argument. I still had plenty of computing time available in “Opus 5.5.” Try Webmite RP2350 7.00.00 AP or Webmite RP2350 7.00.00 APnoDHCP Maybe this will help you. 7.00.00-AP-Guide.zip Patch-File.zip WEB-7.00.00-AP.zip WEB-7.00.00-APnoDHCP.zip Regards Gerad |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Thanks Gerad, I'll order a PICO 2W (this is 2350 code) and will try this when I receive it. Looks promising. But not much room for bug fixing (292 bytes free in flash). Volhout P.S. correction: I need a different platform. The guide says it uses 8Mbyte of PS RAM. So a genuine pico 2W won't do it. Edited 2026-11-30 22:01 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
Do you have a Pico W? What else is the Pico supposed to be able to do, besides serving as an access point? Or is it just an AP? Which WebMite version are you using? Edited 2026-11-30 22:10 by Gerad |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, I currently have a picoW (2040) but pico W has always been resource restricted (RAM mainly). So I do not hesitate to purchase a 2350W. I only have to find one that has PSRAM. It should only run my web app (HTML and MMBasic), no NTP, no network, no MQTP. Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
Which WebMite version are you using? |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, As I said before, I haven't touched my webmite in years, probably V5.07.04 or V5.08.00. I'll have to upgrade anyway, so V7 seems like a good candidate. At that time I did not have a real application for it, so after the simple web page, showing a variable on my phone screen, I became distracted to VGA games development. Regards, Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
Try this : without MQTT and NTP 7.00.00-AP-Guide.zip PICOW-7.00.00-AP.zip PICOW-7.00.00-APnoDHCP.zip Notify me of errors Edited 2026-11-30 23:35 by Gerad |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, I tried the AP-DHCP version, and it works. I could connect from both phone, as well as PC. From the PC I could TFTP a file to the webmite A: drive. So now all to do is write the HTML/MMBasic program. I also tried my NodeMCU with ANNEX, and that hardware was dead. So no plan B. Needless to say that you are a giant, pulling of this functionality in one afternoon, even creating a version for 2350 with all functionality, and a stripped version specific for my application. Thank you very much, Volhout P.S. the AP-nonDHCP also works but I had to teach my phone how to work in a fixed IP network. The DHCP version makes it easier. PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
No problem — thanks to “Claude Opus 5.5.” It would be great if I could program that well... But working with Claude goes really well. Set precise tasks, and you’ll quickly get software that works. Regards Gerad |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, Yesterday I found LucV's "HTML on WebMite 101" training back on this forum. So getting into HTML again now. The WebMite is performing fine so far. I can put html files on the A:/ drive, and run new MMbasic files (the "web server"). Have a phone configured for 192.168.4.1 on the webmite SSID. Now I only have to finish the application before Christmas. Volhout P.S. the only thing I did not foresee is that I need to re-adjust local time after a reboot (watchdog). I may need to add a RTC to the webmite. NTP cannot work because there is no NTP server in my own closed network. Maybe I could request local time from the phone ? On the other hand .. an RTC is not that big of a deal, and you can also re-align time when the phone is off. Edited 2026-12-01 17:23 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
Hi Vollhout, If you need NTP — I can send you the 2040 build with NTP Gerad |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6325 |
Hi Gerad, I would be highly surprized if my old mobile phone will act as an NTP server (it does not even have a SIM card, and is only in the closed network with the WebMite as AP). Don't think that is going to work. Volhout PicomiteVGA PETSCII ROBOTS |
||||
| Gerad Senior Member Joined: 10/01/2024 Location: GermanyPosts: 106 |
If you want things to be easier and you're connecting your Pico to the Internet, here's an AP version with NTP. 7.00.00-AP-Guide.zip PICOW-7.00.00-AP-NTPFix.zip Gerad |
||||
Bryan1![]() Guru Joined: 22/02/2006 Location: AustraliaPosts: 2305 |
Harm with my testing of the PC3 boards I installed SMSGate on my Andriod phone and got mass email and txt all working perfect. Also yes I did have a 2040W in the mix providing GPS to the network. Not sure if this is what you want but going that way does work nicely. Regards Bryan |
||||
| Page 1 of 2 |
|||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |