ESP WRoom 02 is a low-power 32-bit MCU Wi-Fi module, based on the ESP8266 chip. It uses a 2 MB SPI flash connected to HSPI, working as SDIO/SPI slave, with the SPI speed being up to 8 Mbps and it is fully certified by Wi-Fi Alliance, SRRC, FCC, CE ( RED ), TELEC, IC & KCC. The only downside of this awesome wifi module is the lack of stock firmware capabilities. Unfortunately the delivered AT...
Lumen configuration of JWT authentication
Following up our previous post Getting started with Lumen 7.0.x and JWT authentication, we will present how to properly configure the authentication package we installed. Most of this tutorial also applies in Laravel framework as long as Lumen is a minimal implementation of it. For this tutorial we will recap some parts. First of all we need the following two packages to be installed via...
Getting started with Lumen 7.0.x and JWT authentication
Lumen is the perfect solution for building micro-services based on PHP. In this tutorial, we will build a simple and secure REST API. At the end of this tutorial, you should be able to build production-ready JWT (authentication) template for lumen which will help you build your own APIs. So, let’s get started! In this tutorial we will use WAMP to host our micro-service. We assume that you...
Using Bluetooth communication in C#
Bluetooth is a useful communication method especially in the era of IOT. Several devices around the house have a build-in buetooth transceiver and most of them provide really useful capabilitites to automate jobs. For example, imaging your wakeup in the morning, Your alarm clock rings and the coffe machine starts preparing the coffe. Unfortunately these automated procedures are not yet available...
Simple WCF service hosted in Windows service
WFC services are a good way to spit a complex and demanding application into smaller parts and use more system resources, but not only. In the literature there are several information why you should use WFC (ex: Distributed apps in a local network etc)… In this example you will find a complete Visual studio project which hosts a wcf service inside a windows service. Our service has two...
Providing ISO 3166 as a micro-service using lumen
ISO 3166 is a standard published by the International Organization for Standardization (ISO) that defines codes for the names of countries, dependent territories, special areas of geographical interest, and their principal subdivisions (e.g., provinces or states). The official name of the standard is Codes for the...
A naïve way to find the winner at the ‘Five in a row’ board game – C Source Code
Five in a row is a relatively easy game for two players. The aim is to get five of one's pieces in a row (horizontal, vertical, or diagonal). Below is a simple algorithm in C to find the winner.
Encoding in Base64 (C Source Code)
Base64 encoding schemes are generally used when there is a need to encode binary information that needs to be stored and transferred over media that are developed to deal with textual information. This guarantees that the data stays unchanged without modification during transfer. Base64 is generally used in a number of applications including electronic mail via MIME, and keeping complex...
Convert a char array of HEX to ASCII in C
This function solves the case when we have a message which is represented as sequence of bytes in hex format in a string and we want to convert it back.
STM32L4 Sleep mode using FreeRTOS
A useful functionality in low-powered applications is to set the microcontroller in sleep mode for a specific time. This will reduce the overall consumption of the system, and depending on the application it can dramatically improve the battery life. However, using FreeRTOS, the activation of this mode is a bit tricky due to the fact that you have to take into account several other parameters. In...