|
Forum Index : Microcontroller and PC projects : Webmite
| Author | Message | ||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6318 |
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: 104 |
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: 6318 |
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: 104 |
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: 6318 |
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: 6318 |
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: 104 |
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: 6318 |
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: 104 |
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: 6318 |
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: 104 |
Which WebMite version are you using? |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6318 |
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: 104 |
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: 6318 |
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: 104 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |