Comments (11)
This code seems to work for me, can you try it?
#include <WiFi.h>
char ssid[] = "yourNetwork"; //Set the AP's SSID
char pass[] = "Password"; //Set the AP's password
char channel[] = "1"; //Set the AP's channel
int status = WL_IDLE_STATUS; // the Wifi radio's status
void setup() {
//Initialize serial:
Serial.begin(115200);
// Check wifi status
status = WiFi.status();
// attempt to start AP:
while (status != WL_CONNECTED) {
Serial.print("Attempting to start AP with SSID: ");
Serial.println(ssid);
status = WiFi.apbegin(ssid, pass, channel);
delay(10000);
}
//AP started:
Serial.println("AP mode started");
}
void loop() {
// check the network connection once every 10 seconds:
delay(10000);
}
from ambd_arduino.
Yes, it works, but doesn't work if I remove the line:
delay(10000);
In my actual application the main loop will be executing other code. Is there a call I need to make periodically to check the network connection?
Thanks, David
from ambd_arduino.
It looks like the RTOS running in the background does not like a empty loop. using vTaskDelay(1 / portTICK_PERIOD_MS);
is sufficient to keep it running.
from ambd_arduino.
That works - thanks!
from ambd_arduino.
Now I'm getting a new problem. When I try and create a Soft Access Point I get the error:
Error!!!upd_new error
but the Soft Access Point seems to have succeeded, and I can see it in my list of Networks.
However, when I try to connect to it I get a series of errors:
Cannot allocate pbuf to receive packet
What's the problem here? It was working at first. Thanks, David
from ambd_arduino.
Do you mind posting your code here? Need to get an idea of what it is doing in the main loop.
from ambd_arduino.
I'll try and create a cut-down version that shows the problem.
from ambd_arduino.
OK, I think I've figured it out. I omitted the line:
status = WiFi.status();
It seems it's necessary to call WiFi.status() before calling WiFi.apbegin().
Thanks, David
from ambd_arduino.
I've now got a version of uLisp, my Lisp for microcontrollers, available for the Ameba RTL8722DM IoT Development Board:
http://www.ulisp.com/show?39RE
Is there somewhere more appropriate I could mention this?
from ambd_arduino.
It looks like Realtek developers do check here occasionally. Alternatively, you could try posting in the community forum at https://forum.amebaiot.com/
from ambd_arduino.
Thanks!
from ambd_arduino.
Related Issues (20)
- Pinout LED blue (BW16 RTL8720DN) HOT 3
- mDNS service discovery HOT 3
- [MicroPython feature request] WiFi scan improve. HOT 3
- Compatibility issue: AMB26(RTL8720DF) and NORA-W30(RTL8720DF) share same #defined(BOARD_RTL8720DF). HOT 3
- Permission denied when compiling on Linux HOT 4
- Compile fails on Windows if space exists in path (eg username) HOT 4
- [Question] How to install amb-D board using release .zip file? HOT 2
- Send raw ieee80211 data HOT 3
- Expose WiFi channel in WiFi.scanNetworks() and update example to showcase usage HOT 5
- I confirm I have checked existing/closed list of issues and the Contributing Guide.
- Spelling mistakes (GitHub Action Spell Check) HOT 4
- AMB25 and AMB26 upload issues HOT 2
- Documentation/instructions/support files for how to rebuild the libraries in "variants/common_libs" (source in system) HOT 6
- Error compiling for board Ai-Thinker BW16 (RTL8720DN) HOT 3
- UDP.h is missing in core HOT 2
- The SPI.h file error HOT 3
- BW16 MQTT can't use ArduinoJSON.h HOT 2
- Would it be possible to add enterprise wifi (PEAP-MSCHAPv2) support HOT 2
- SPI dataMode not updating correctly in SPIClass::beginTransaction() HOT 3
- WS2812B fails with multiple calls to show() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ambd_arduino.