2022

Archive 2022

Data streaming between two BLE devices: PSoc6 and nRF52832

Published at September 10, 2022 ·  3 min read

I had a project where I had to stream data between two BLE devices. The data source was connected to PSoc6 and sent using its BLE transceiver to the destination device, nRF52832. Usually but not must, the peripheral devices are used as a GATT client, and the central machines are used as a GATT server. Therefore, I set the PSoc6 (The data source) as the central device (client) and the nRF52832 as the peripheral device (server)....


WebSockets with C++

Published at March 3, 2022 ·  2 min read

I have wrap libwebsockets (lws) in c++ classes to implement WebSockets on c++. It gives a simple way to work with lws and create a WebSocket connection with a few lines of code. The architecture of the lws is hierarchical. It has several protocols, and each protocol includes detail like address, path, destination port (443,9443), and WebSocket interface (WSI). A protocol can serve several services, where the users should subscribe to it....


REST API Server with c++

Published at February 23, 2022 ·  5 min read

Here is a simple project to implement a general REST API service module in c++ using reasbed library. The library uses a modern c++ to implement REST API calls. And it is possible to use the REST service to access databases, access, and control a complex application to help the QA & verification process by accessing internal SW modules. Moreover, the module is simple and easily removed in production modes....