Tutorial by Examples: communication

For this demonstration we will use service broker construction created in another part of this documentation. Mentioned part is named 3. Create basic service broker construction on database (single database communication). USE [MyDatabase] DECLARE @ch uniqueidentifier = NEWID() DECLARE @msg XML...
Creates a graph topology in a distributed manner so that each node defines its neighbors. Each node communicates its rank among neighbors with MPI_Neighbor_allgather. #include <mpi.h> #include <stdio.h> #define nnode 4 int main() { MPI_Init(NULL, NULL); int rank; ...
If you have an Arduino connected to a computer or a Raspberry Pi, and want to send data from the Arduino to the PC you can do the following: Arduino: void setup() { // Opens serial port, sets data rate to 9600 bps: Serial.begin(9600); } void loop() { // Sends a line over serial: Se...
Some very simple and low cost hardware devices, like sensors, use a one-bit communication protocol. A single bi-directional data line connects the device to a kind of micro-controller. It is frequently pulled up by a pull-up resistor. The communicating devices drive the line low for a pre-defined du...
Pipes supports simple binary communication between a client and a server In this example: a client connects and sends a FirstMessage the server receives and answers DoSomething 0 the client receives and answers DoNothing step 2 and 3 are repeated indefinitely The command data type exchange...
The window.postMessage() method together with its relative event handler window.onmessage can be safely used to enable cross-origin communication. The postMessage() method of the target window can be called to send a message to another window, which will be able to intercept it with its onmessage e...
Node js code Sample to start this topic is Node.js server communicating with Arduino via serialport. npm install express --save npm install serialport --save Sample app.js: const express = require('express'); const app = express(); var SerialPort = require("serialport"); var po...

Page 2 of 2