Skip to main content

Posts

Showing posts from August, 2025

CoAP using NodeJS | Californium CoAP Client

CoAP using NodeJS | Californium CoAP Client This post shows the Constrained Application Protocol (CoAP) demonstration using Node.js Prerequisites: 1. Node.js Software 2. Windows 11 or Ubuntu , or Mac OS 3. A Coap Client (we are planning to use Californium, which is based on JavaFX ) 4. Oracle 11 JDK is needed 5. Java FX 17 version, which is to be unzipped in any folder. Step 1: The Source code is named coap.js Listen to the following video for an explanation of the source code: var coap = require('coap'); function randomInt(min, max) {     return (Math.floor(Math.random() * (max - min) + min)); } var portNumber = 5683; coap.createServer(function(req, res) {     console.info('CoAP device got a request from %s', req.url);     if (req.headers['Accept'] != ' application/json ') {         res.code = '4.06';         return res.end();     }     switch (req.url) {         case ...

How to Install Windows 11 on a Laptop Using a USB Drive

✅ What You’ll Need: A USB drive with at least 8GB of storage ( Windows 11 installation files are ~5.4GB ) Windows 11 ISO image or installation DVD Administrator privileges on your current system 🔧 Step-by-Step Instructions: Step 1: Backup Your USB Drive Plug in your USB drive and back up any important data — this process will erase everything. Step 2: Improve USB Performance (Optional, but Recommended) Go to: Control Panel → Device Manager → Disk Drives → [Your USB Drive] → Properties → Policies Select “Better performance” for faster write speeds. (Pro Tip: With this, Windows 10 can install in under 15 minutes — even on machines with just 4GB RAM !) Step 3: Open Command Prompt as Administrator Go to: Start → Accessories → Right-click “ Command Prompt ” → Run as Administrator Step 4: Use DISKPART to Prepare the USB Drive Type the following commands one by one: DISKPART LIST DISK SELECT DISK # ← (Replace # with your USB disk number...