How To Directly Program An Inexpensive ESP8266 WiFi Module

The ESP8266 is the answer to “I want something with Wifi.” Surprisingly, there are a number of engineers and hobbyists who have not heard of this chip or have heard of it but don’t really understand what it is. It’s basically the answer to everything IoT to so many engineering problems that have plagued the hobbyist and commercial world alike.

The chip is a processor with integrated RAM, some ROM, and a WiFi radio, and the only external components you will need are 4 capacitors, a crystal and an external flash! It’s CHEAP, like $4/ea cheap! Or $5 if you want it on a nice, convenient carrier board that includes all these components. The power consumption is reasonable (~200mA)1, the range is insane ~300m2 without directional equipment, and a PCB trace antenna and ~4km if you want to be ridiculous.

The processor by default runs at 80 MHz but can go up to 160 MHz, it has ~80kB DRAM (Data RAM), and ~35kB of high speed IRAM (Instruction RAM).4 Yes, that means it uses a Harvard architecture. The IRAM is loaded at boot with whatever the user wants to keep on-processor, though the processor can run code directly off of the external flash at a lower speed.

Source: How To Directly Program An Inexpensive ESP8266 WiFi Module | Hackaday

How to Reset a FreePBX Administrator Password

If you forget your administrator login information for FreePBX, there is a simple way to log in and reset it. You will need your current root password to proceed with this tutorial.

  1. Log into your FreePBX server via SSH as the root user, using a tool such as PuTTY on Windows, or Terminal on Mac.
  2. Next, bring up your FreePBX web interface in a web browser. Once the page has loaded, press Ctrl + A on your keyboard to highlight everything on the page.
  3. Locate the unique session ID on the left side of the screen, and copy this string. It will look something like this: igg56njsp8bi0h4odqnupsq963
  4. In your PuTTY or terminal window, type the following (be sure to replace the unique string with your own, and press enter):
    [root@pbx ~]# fwconsole unlock igg56njsp8bi0h4odqnupsq963

    Unlocking:

    session unlocked!

    [root@pbx ~]#

    If you are using FreePBX 13 or earlier and the above gives you a ‘command not found’ error message, use the deprecated amportal command:

    [root@pbx ~]# amportal a u igg56njsp8bi0h4odqnupsq963

    Fetching FreePBX settings with gen_amp_conf.php..

    session unlocked!

    [root@pbx ~]#

  5. In your web browser, refresh the login page and you will be automatically logged in.
  6. Visit Admin -> Administrators and select your user on the right side of the page. At this point, you can reset your password.