ESP32+Arduino的smartconfig配网方式,以及配套APP

主要原理采用了WIFI UDP发送广播的方式
由于Arduino提供的驱动包实在太方便了,这里直接用了,可以去看一下库源码,源码的继承关系还是比较多了,一个WIFI类继承了多个不同的父类,其中ESP8266WiFiSTAClass类提供了在STA模式下的各种方法,这里面就有

        bool beginWPSConfig(void);
        bool beginSmartConfig();
        bool stopSmartConfig();
        bool smartConfigDone();四个方法,WPS需要路由器支持,其他三个方法看名字就知道用途
demo代码如下:
 
char ssid[30] = STASSID;
char password[30] = STAPSK;
//以下函数在setup中调用
void smartConfig()
{
  WiFi.mode(WIFI_STA);//切换到STA模式
  Serial.println(“\r\nWait for Smartconfig\r\n”);
  WiFi.beginSmartConfig();//开始smartconfig
  while (1)
  {
    Serial.print(“Waiting …\r\n”);
    if (WiFi.smartConfigDone())
    {
      Serial.println(“SmartConfig Success!!!”);
      Serial.printf(“SSID:%s\r\n”, WiFi.SSID().c_str());
      Serial.printf(“PSW:%s\r\n”, WiFi.psk().c_str());
      memset(ssid,0,sizeof(ssid));
      memset(password,0,sizeof(password));
      sprintf(ssid,”%s”,WiFi.SSID().c_str());
      sprintf(password,”%s”,WiFi.psk().c_str());        //设置WIFI账号和密码
      WiFi.setAutoConnect(true);                        //设置自动连接
      break;
    }
    delay(1000);
  }
}
 
 
昨天找了半天的配网工具,其实乐鑫官方就提供了一个很好用的esp-touch
需要先把手机连接到wifi上,然后通过UDP广播,ESP32才可以收到数据包
 
网上各种配网软件乱七八糟的,这个软件在很多手机的应用商店没有上架,所以还是要去乐鑫的官网下载。

ESP32+Arduino的smartconfig配网方式,以及配套APP》有88个想法

  1. flash_code

    Mega.nz brute\checker by flash_code

    Формат базы mail;pass (Разделители “;” “:”)

    Log:
    ============================================
    hy_leow@hotmail.com:budak1993
    Used: 6/50GB
    ============================================
    My telegram chanel
    https://t.me/flash_code_tools

    Download
    https://disk.yandex.ru/d/9uO5NGkSw9c5aw
    https://mega.nz/file/gSJgiDRA#PJlt8ei_03GjG3ZOlMSsa-toLnjpVmncMmY9HqUFQBQ
    https://www.sendspace.com/file/1wzv0a

    VT
    https://www.virustotal.com/gui/file/35d513bc2540f1ad0240519bd41164135a1b2b35a648ba185d284b202857b273/detection

  2. Cedrick

    Through friends buy viagra 100mg Graham Hope, an Englishman, suffered a head injury. He said: “The train just started to rock up and down like a bucking bronco and the next thing we hit the station itself. The train bounced up and down dramatically for several seconds.”

  3. Alyssa

    Is it convenient to talk at the moment? cheap cialis online Democracy and Islam are incompatible. Long term stability in an Islamic nation can only be maintained through authoritarian governance. Ataturk knew this, as do all the dictators in the Islamic world.

  4. Caroline

    Hello good day cheap viagra online
    But the formation of the Ideas group, which the companyadvertises as a “think/do tank” headed by Jared Cohen, a formerU.S. State Department official, has raised the possibility ofthe company playing a more active role in furthering U.S.policy.

  5. Francesco

    Good crew it’s cool 🙂 levitra online kaufen paypal “The Yankees were a factor. The Red Sox were a factor,” Hunter said Friday. “But I look at the teams and after all those failures in the postseason you kind of figure out what’s going on and what’s wrong: It’s pitching and defense. So when I went to the Tigers, I said ‘I know what it takes to win a World Series. I look at this team and we have a good chance of doing it.’”

  6. Stanton

    A few months buy viagra 100mg “We still have a long way to go and many challenges to meet,” the company founder said. “But under a new private company structure, we will have the flexibility to accelerate our strategy and pursue both organic and inorganic investment without the scrutiny, quarterly targets and other limitations of operating as a public company.”

  7. Royce

    This is your employment contract buy viagra 100mg Of course while a scarf is an accessible way into a very high end designer brand like McQueen they're still pretty punchy when it comes to price so why not take a look at some of the excellent homages we've found still going strong.

  8. Zackary

    Photography buy viagra 100mg Senior administration officials and organizers working to help reach the uninsured with news of Obamacare benefits believe enrollment will get off to a quiet start on Tuesday and build slowly through the six-month enrollment period.

  9. Owen

    An envelope cheap cialis online Hezbollah has 12 MPs in the Lebanese parliament – two of whom are members of the caretaker cabinet – and the administration in Beirut said it regretted the decision. Caretaker Foreign minister Adnan Mansour called it “hasty”, while earlier in the day President Michel Suleiman had stressed that Hezbollah was an “essential component of Lebanese society”.

  10. Irving

    We work together cheap cialis online Many were filed six months ago, on the same day that theJustice Department sued S&P for $5 billion. Last month, U.S.District Judge David Carter in Santa Ana, California allowed thegovernment to continue pursuing that case.

  11. Terrance

    Could I ask who’s calling? write essay fast
    A pro-Palestinian hacktivist group managed to briefly hijack the Metasploit website of security firm Rapid7 on Friday after faxing a DNS change request to its registrar, the firm’s chief research officer HD Moore has admitted.

  12. Chuck

    I’ve got a full-time job viagra fedex “In effect, it has crystalised the debate. Ultimately, this is not just Cuadrilla. The country is going to need to make a decision at some point, do we want to develop this or do we not?” If the answer is yes, will the Sussex Weald become North Dakota? “You don’t go into a development phase on the back of one exploration well. The idea that Sussex is going to turn into North Dakota overnight – or even next year, or the year after – is just ridiculous.”

  13. Sidney

    Have you got any experience? write essay cheap The surviving migrants asked the lawmakers to be allowed to identify the deceased, to repatriate their remains to Eritrea and to be moved to centers away from Lampedusa as soon as possible, Boldrini said.

  14. Dghonson

    A few months write essay fast
    Including Panasonic, there are now 11 companies and 15 executives who have pleaded guilty or agreed to plead guilty as part of the auto-parts investigation, which has netted more than $874 million in criminal fines. The price-fixing began at least as early as 1998 and stretched to at least 2010, the Justice Department said.

  15. Jeffery

    Could you ask him to call me? cheap viagra online
    “Clearly there’s a political negotiation going on right now. Unfortunately, the price of the negotiations is people’s lives. The Brotherhood is going to see if they can somehow have a new accommodation with the new system, so they have some role in politics and some legitimate place and their leaders do not face mass imprisonment,” says Samer Shehata, associate professor of Middle Eastern politics at the University of Oklahoma, who studies the group closely.

  16. Tracey

    I sing in a choir cheap viagra online
    But Farthing is married to a doctor. Between them they are likely to have seen many more complicated than simple labours. Normal birth is shockingly alien to too many private obstetricians: in studying an ‘illness’ model of birth, they learn how to help when things go wrong, rather than how to keep them going right in the first place – the direct opposite of midwives.

  17. Perry

    This is the job description write essay cheap So when he agreed with former Giant Carl Banks and said Tuesday that Big Blue lacked fight “200 percent,” it was heard. And when he called for “more pride, more passion in the game,” it was heard. And the obvious diss he delivered to his team when he described Sunday’s debacle was heard.

  18. Hayden

    I’ll put him on write essay cheap In other cases, that zeal for the familiar can curdle into something more extreme. Michaluk says that in New York earlier this year, he ran into an older man in an elevator using a BlackBerry 8700, a phone that first hit the market back in 2006. When Michaluk asked about it, the man said, “Let me tell you something. I own 20 of these. I’m never switching. This is my phone. I know it.” For the man in the elevator, it’s a great plan — but for anyone in the business of selling Z10s, relying on that kind of customer can be downright scary.

  19. Seth

    I support Manchester United cheap cialis online Obama made clear in his weekly address Saturday that hewants a longer debt ceiling extension to get the U.S. economythrough the holiday shopping season without a convulsive shock.Republicans want a commitment to broader deficit-reduction talksfrom the White House.

  20. Samual

    Thanks for calling buy cialis 10mg
    Two-goals down, Sunderland, under the guidance of caretaker manager Kevin Ball, and still reeling from the 175 days of Paolo Di Canio’s reign of fear, could have exited the game at that point. To their credit they did not. Ball revealed he had taken the players for a walk along the seafront on the morning of the game so they could “see the people they represent”.

  21. Collin

    Have you got any ? cheap viagra online
    The family remains heavily involved in all branches of itsretail and food empire, with grandchildren andgreat-grandchildren of George running both the retail andphilanthropic sides of the Weston businesses around the world.

  22. Joaquin

    I’d like to cancel this standing order buy cialis 10mg
    This is a type of cookie which is collected by Adobe Flash media player (it is also called a Local Shared Object) – a piece of software you may already have on your electronic device to help you watch online videos and listen to podcasts.

  23. Jenna

    I’m not sure cheap cialis online “What’s at issue here isn’t just the choice to use MTBE,it’s the failure to warn people and the failure to take thesteps that … would have avoided or mitigated the environmentalimpacts of it,” said attorney Victor Sher of the SanFrancisco-based law firm of Sher Leff that represented the Cityof New York.

  24. Antione

    How many days will it take for the cheque to clear? levitra generika paypal
    If the Giants could not beat the Vikings, who are now 1-5, it was fair to wonder exactly which games they were going to win this year. The only score the Giants gave up was on Marcus Sherels’ 85-yard punt return, the third punt-return TD they have given up this season.

  25. Eric

    I’m a member of a gym write essay fast
    The report did not break down migration by age, but it is common knowledge that many leaving the country are young and educated and a large proportion eventually wind up in the United States where they are quickly granted residency even if they entered illegally.

  26. Morgan

    Have you got any experience? cheap cialis online The U.S. remains in a bad spot. That Putin was able to snatch options away from Obama underscores that the U.S. was never fully in control of the situation, and is less so now. Claims that Assad’s acceptance of the Russian proposal is serious and due to fear of American strikes are creative. Assad knew Obama was caught off guard and was searching for a way out, or to at least minimize any strikes. It seemed increasingly probable that the administration would not bring Congress along, let alone the American public, and this would hamstring action. It was not as if Obama would order the strike anyway if he lost those votes. Assad could have waited for the no vote, put Obama in the worst of positions, and then, had Obama threatened to act anyway, accepted the Russian proposal as vague as it was and drag it out.

  27. Bryant

    Some First Class stamps write essay fast
    He makes several assertions without providing much evidence to substantiate his claims. For example, he claims the consultants’ fees, which The Independent on Sunday revealed earlier this year, were in excess of their initial budgets, well before their contracts had come to an end, are “still within” HS2’s own estimates.

  28. Camila

    Pleased to meet you kamagra per paypal bezahlen
    “We had already been alerted in June and we reacted strongly but obviously we need to go further. This kind of practice between partners, that violates privacy is totally unacceptable. We must ensure quickly that these practices are no longer repeated,” Laurent Fabius said.

  29. Frederic

    Who do you work for? write essay fast
    On this week’s Daily News Fifth Yankees Podcast, Mark Feinsand sits down with outfielder Vernon Wells to discuss the Yankees’ fading postseason hopes, the tough road trip and what the team’s recent stumble means going forward.

  30. Rafael

    It’s funny goodluck write essay fast
    Smith went 5-for-10 with a TD, absorbing two sacks, and did have the play of the day: a 50-yard pass to a diving Ryan Spadola, who burned cornerback Ellis Lankster. After failing in his first two attempts to score inside the 10, Smith converted on his final try.

  31. Laverne

    Which year are you in? write essay fast
    “The airworthiness directive would be based on the information collected from the equipment inspections mandated by the FAA, information already provided by Honeywell, and the results of (Transport Canada’s) inspections of Honeywell and Instrumar.”

  32. Addison

    Do you like it here? buy cialis 10mg
    Exports unexpectedly fell 0.3 percent in September, as fears of a tapering in U.S. monetary stimulus weighed on demand from Southeast Asia. Exports were a drag on the economy in the first three quarters, subtracting 1.7 percentage points from growth.

  33. Mathew

    I’m sorry, she’s cheap cialis online The victims managed to find an NYPD Emergency Service Unit truck nearby — at the corner of East 149th St. and Morris Ave — and reported the robbery. The ESU officers radioed the 40th Precinct, and Krug and his partner were part of the responding cavalry.

  34. Ronny

    Sorry, you must have the wrong number buy viagra 100mg Following Cote’s ruling, the government asked that she require Apple to end contracts with the five publishers and be prevented for five years from entering contracts that the Justice Department says would restrict Apple from competing on price.

  35. Emile

    I’m sorry, I didn’t catch your name cheap cialis online Their status changed suddenly on July 3, when the Egyptian military, which says it was acting on the will of the millions who called for Dr Mursi’s downfall, stepped in and forced the government from power.

  36. Wilbur

    Do you know what extension he’s on? buy viagra 100mg “Well, I don’t know,” Collins said when asked about his plans at first for after the break. “Ike came back because from everything they told us, he was ready, he was swinging better, he was swinging like he was.

  37. Jacob

    How do I get an outside line? cheap viagra online
    Or does Obama have something else in mind? By delaying the vote, by delaying the start of the debate, he is allowing opposition to build, especially among Republicans who already seem divided on the issue. If the vote to authorize force fails, will he blame the GOP for the defeat while ignoring the votes of the stalwart anti-war Democrats who are thick within the House and Senate and, thereafter, blame Republicans for any additional genocide — allowing the left to refer to the GOP as the “Genocide’s Okay Party” up through the November 2014 election?

  38. Leah

    I work for myself levitra generika mit paypal bezahlen Much like the Ballad of Gay Tony, GTA V has a ranking system after each mission with different criteria to match to get the top medal. You can’t see the often cryptic checkboxes until you’ve completed the mission at least once, making it not ruin your first playthrough by doing something you wouldn’t normally attempt, which is nice. Leaderboards track your progress against your friends, giving you a little extra to strive for when in your ‘completionist mode’.

  39. Elisha

    Who’s calling? cheap cialis online That check for his security clearance was conducted after Alexis was arrested in Seattle in 2004 for shooting a construction worker’s car tires in an anger-fueled “blackout,” according to the Seattle Police Department.

  40. Chang

    An estate agents cheap viagra online
    That same season, Hernandez, working a Reds-Mets “Fox Game of the Week” with Kenny Albert, thought Rey Ordonez deserved an error after bobbling pitcher Jaime Cerda’s pickoff attempt. Instead Karpin ruled E-1.

  41. Carson

    Do you play any instruments? kamagra kaufen paypal bezahlen Ballmer was never a product visionary like Bill Gates, Steve Jobs, Larry Page, or Larry Ellison, but he never claimed to be. You can argue that Microsoft needs a bit more of that. No matter what you think of his tenure as CEO, he played a crucial part in helping Gates build Microsoft up in the 80s and 90s. When I look at the successes the company has had, he deserves more respect than he seems to be getting.

  42. Terrence

    Where do you come from? buy cialis 10mg
    During the 1950s, the United States first began to institute various formal doctrines of nuclear deterrence. At that time, at least geopolitically, the world was a much simpler place. Global power distributions were then tightly bipolar; our indisputable enemy was the Soviet Union.

  43. Gilbert

    What qualifications have you got? kamagra jelly paypal Investigators believe Saul Montalvo and another man named Juan Arias were the racket’s ringleaders, while Daniel Montalvo and Benny Maldonado would collect and distribute cash at the betting parlors.

  44. Mitch

    Could I have , please? buy viagra 100mg In a report on the inquiry which is published today, the MPs condemned the lack of consultants working in A&E departments, with just one in five casualty wards providing an adequate number of senior staff.

  45. Branden

    Sorry, I ran out of credit write essay cheap HONG KONG, Oct 16 (Reuters) – China shares underperformedothers in Asia, pushing down Hong Kong markets, and could havetheir heaviest loss in three weeks on Wednesday as investorstook profit on outperforming sectors.

  46. Aaliyah

    An accountancy practice buy viagra 100mg U.S. aviation officials cautioned against jumping to any conclusions that the emergency beacon or its battery caused the fire, saying many components were damaged in the blaze, which made it difficult to determine where the fire broke out.

  47. Harlan

    Excellent work, Nice Design cheap viagra online
    A Senate committee will rule on whether to expel Silvio Berlusconi from parliament over his tax fraud conviction, probably later in the day and beforehand the former prime minister and media mogul is expected to release a pre-recorded video statement.

  48. Lamar

    I’m not sure buy cialis 10mg
    In the letter, the senators claim the current schedule “may further widen the digital divide for small and rural providers who lack the resources of large practices and may not be vendors’ top priorities.”

  49. Nilson

    A Second Class stamp buy cialis 10mg
    It said there were no casualties and both reactors had been shut off and were in “safe condition”. The firm also said there had been no weapons aboard the ship, which normally carries up to 24 guided missiles, when the fire broke out.

  50. Wilton

    I need to charge up my phone levitra generika kaufen mit paypal
    Milliner played 37 snaps on Thursday before he was replaced by a combination of Kyle Wilson and Darrin Walls. “I just thought that at that time, I just thought it was best that hey, you know what, sit him down, let him watch it and we’ll go with more experience out there,” Ryan said.

  51. Douglas

    I can’t get a dialling tone write essay fast
    Less than a week after the start of pre-season training, Pellegrini used a different team in each half but will still have been far from happy with the way his side gave up goals to Mame Niang and Kermit Erasmus in the second half of the opening match of the Nelson Mandela Invitational.

  52. Jerrold

    I like watching TV cheap viagra online
    “We would much prefer a big comprehensive bill, buy way that the House can get there is okay by us,” Schumer told CNN. “If we can get together at the end of the day and compromise that will be a good thing.”

  53. Broderick

    Accountant supermarket manager buy cialis 10mg
    An example of the difference between premium and the cost to provide coverage is that premiums do not include cost sharing paid by the consumer, whereas cost includes both the cost to the company to provide the coverage and the cost sharing paid by the consumer.

  54. Benny

    A packet of envelopes buy cialis 10mg
    Another interesting thing that American Express did recently was change the terms for everyone regarding mandatory binding arbitration (they now pick the venue to settle disputes). The notice for this was put on the back of the paper bill. I pay my bill online and only look at the electronic statement (not the PDF), so I didn’t hear about it until the opt-out period was past.

  55. Vincent

    Could you please repeat that? cheap cialis online In contrast, prosecutors argued Zimmerman showed ill will when he whispered profanities to a police dispatcher over his cellphone while following Martin through the neighbourhood. They said Zimmerman “profiled” the teenager as a criminal.

  56. Jarred

    What’s the last date I can post this to to arrive in time for Christmas? cheap cialis online According to the most recent odds from Bovada in Las Vegas, both the Giants and Jets are 150-1 shots to play in Super Bowl XLVIII at the Meadowlands in February. Only four NFL teams have longer odds — the Rams (300-1), the Buccaneers (500-1), the Raiders (750-1) and the Jaguars, who are “off the board.”

  57. Jeffrey

    A jiffy bag cheap viagra online
    Wildfires near the Arctic Circle are becoming increasingly more common – and in one Alaskan region called the Yukon Flats, fires are cropping up at a more frequent pace than any other time in the past 10,000 years.

  58. Ronald

    perfect design thanks buy cialis 10mg
    Smith didn’t earn the starting job coming out of preseason, but the Jets should have a fostered a better environment for him once it became apparent that Sanchez would miss extended time. The notion that Smith would somehow be coddled if Ryan & Co. named him the starter for the foreseeable future is flawed and laughable.

  59. Wally

    I can’t hear you very well write essay cheap Texas Rangers outfielder Nelson Cruz, one of the players expected to be suspended by Major League Baseball for his role in the Biogenesis doping scandal, has fired agents Sam and Seth Levinson and decided not to appeal his 50-game ban for violating the game’s collectively bargained drug agreement.

  60. Hershel

    What sort of music do you listen to? cheap cialis online The company has 400 million Norwegian crowns ($67.5 million)in cash and access to extra financing via a 350-million-eurobond, following its failed attempt to take over rival Cermaq, the daily reported.

  61. Carlton

    very best job cheap viagra online
    Free to explore both compartments, individual mice settled on one they preferred. Each mouse was then placed in the chamber they had rejected after being injected with cocaine. From then on, they gravitated to the compartment associated with the drug.

  62. Gregg

    It’s a bad line cheap cialis online “It is clear that when the galley staff heard that inspectors were on board, instead of continuing their work in the understanding that they were in the middle of a meal service, they tried to quickly remove all trolleys and any items not in the fridges and place them in cabins out of the way.

  63. Nicolas

    An envelope kamagra paypal payment uk
    “There were moments where I felt like choreography-wise, I felt like it was two people dancing side-by-side rather than together,” she said on Monday night’s show. “So I really want to see (Milian) shine. I’ve danced with Mark. You have to stand in front to make sure you’re seen.”

  64. Lesley

    Looking for a job buy viagra 100mg In August, the USTR overturned a proposed ban on someolder-model Apple iPhones and iPads which had been found toinfringe Samsung patents. Patents involved were standardessential patents, while the patents covered by Tuesday’sdecision were not.

  65. Mitch

    Wonderfull great site viagra cialis paiement par paypal I completely agree with him, whether its his place to talk about it or not. DB funds are in a uniquely influencial position because of the enormous assets they hold, along with enormous responsibilities of course. But terrible headline.

  66. Franklyn

    I’m only getting an answering machine cheap viagra online
    It was an honest mistake, the Mets claim. A tweet from the team’s official account Monday night seemed to take a shot at the Yanks and their ongoing injuries. With a picture of the Mets stretching before Monday night’s game against the Braves, the tweet began:

  67. Adrian

    I’m on business buy cialis 10mg
    Two Alaskan Republicans have already said they are planning to take on Begich: Joe Miller, who defeated Sen. Lisa Murkowski in a GOP primary in 2010 only to lose to her on Election Day when she mounted a historic write-in campaign, and current Lt. Gov. Mead Treadwell.

  68. Eugenio

    My battery’s about to run out buy viagra 100mg QP’s growth prospects at home are severely hampered by aself-imposed moratorium on new projects to tap the world’sbiggest gas reservoir, the North Field, leaving internationalexpansion as best chance of maintaining its gas market share.

  69. Shelby

    Sorry, I ran out of credit write essay fast
    According to Pelkmans’ researchers, transcript patterns may be a countermeasure against the inconsistency in the amount of transcript molecules.  It follows that these types of patterns would be responsible for the robustness of processes within a cell.

  70. Jared

    Could I make an appointment to see ? cheap viagra online
    However, the auction is proving to be more than just a battle over price, with some bidders hoping the German telecoms firm can be persuaded to sell a larger stake and several unhappy with its proposals on the future funding of Scout24.

  71. Branden

    A jiffy bag buy viagra 100mg They also asked for the names of the key executives atSmithfield Foods involved in making and marketing heparinproducts, including pig intestines and crude heparin, anddetails of key managers at any Smithfield facility involved inmanufacturing crude heparin.

  72. Kaden

    How much were you paid in your last job? cheap viagra online
    If state-owned pensions in major Islamic markets shifted aportion of their money into sharia-compliant schemes, that couldadd between $160 billion and $190 billion to the sector,according to consultants Ernst & Young.

  73. Cristobal

    I went to cheap cialis online “He said that he let one slip early in his career, and he said he would never let that happen again. He would just be tough and want it so badly. And sometimes maybe that has to happen for you to realise that,” Scott said.

  74. Miquel

    How long have you lived here? buy cialis 10mg
    For example, the Chief Investment Office’s own assessment ofthe value of its credit derivatives made other bank officials souncomfortable that one unnamed senior investment bankingexecutive consulted an outside lawyer before signing documentsthat would go in the company’s public financial reports,according to the SEC’s order.

  75. Winfred

    magic story very thanks buy viagra 100mg In an interview before the announcement, Thompson said McDonald’s is looking at developing other healthy sides that will appeal to customers. He noted that McDonald’s could also take the fruits and vegetables it offers in other parts of the world, such as cups of corn and kiwi on a stick, and make them more widely available. 

  76. BruteBankCod

    Carding Tools are pieces of software created to help you with hacking or that users can utilise for hacking purposes
    here you will find a lot of useful things.(Carding,Spam,Tutorial,Bank,CC,Brute,Cheker and other )

    Subscribe to the channel @flash_code_tools

评论已关闭。