Setup Zephyr Development Env on Manjaro Linux and Building Sample Application for X86 Qemu

Oct 14, 2018 - 1 minutes
Install the dependuncies using yaourt: $ yaourt -S ninja ccache cmake gperf doxygen dfu-util dtc autoconf automake libtool Clone the zephyr repo and install requirements. $ cd ~ $ git clone https://github.com/zephyrproject-rtos/zephyr.git $ cd zephyr/ $ pip3 install --user -r scripts/requirements.txt $ cd .. download the zephyr sdk. $ wget https://github. Read more ...

Setup Your Own Git Server on RaspberryPi

Oct 9, 2018 - 1 minutes
To setup a local git server on a RaspberryPi, the procedure is actually very simple. You need following things configured on the system on which you are setting up the git server. SSH needs to be enabled. git-core needs to be installed. git repo needs to be initialized. This repo will be cloned and mentained. Read more ...

ESP8266 Using MQTT

Aug 23, 2018 - 3 minutes
MQTT MQTT is a lightweight publish/subscribe messaging transport designed for machine-to-machine “Internet of Things” connectivity. It’s been used in all sorts of industries from home automation and Facebook Messenger mobile app to health care and remote monitoring over satellite links. Installing MQTT Broker On Fedora $ sudo dnf install mosquitto On Debian based systems Read more ...

ESP8266 Access GPIO Using Micropython

Aug 1, 2018 - 1 minutes
In this post I’ll be writing about accessing GPIO ports on ESP8266. Module machine contains the apis for the GPIO on ESP8266. import machine pin = machine.Pin(2, machine.Pin.IN, machine.Pin.PULL_UP) To use a GPIO we need to configure it as either input or output. In the above example machine.Pin.IN configures the GPIO pin as an input, meaning you can connect a button like the one shown below to it. Read more ...

ESP8266 Connecting to WIFI and Making HTTP Requests using MicroPython

Jul 26, 2018 - 2 minutes
There are two WiFi interfaces, one for the station (when the ESP8266 connects to a router) and one for the access point (for other devices to connect to the ESP8266). Here is an example to connect ESP8266 to your wifi router. >>> import network >>> sta_if = network.WLAN(network.STA_IF) >>> sta_if.active() # check if station mode is activated or not. Read more ...

Implementing HTTP Basic Authentication in Golang

Jul 5, 2018 - 2 minutes
Basic access authentication uses standard fields in the HTTP headers for providing user credentials. It is the simplest technique for enforcing access control to web resources. It does not require cookies or session identifier or login page. The specifications for basic access authentication are specified in RFC7617 For Golang httpauth package provides HTTP Basic Authentication middleware. Read more ...