Keywords: Socket, Socket programming, TCP/UDP Continuation toš¤socket programming. There are two widely used Socket types, stream sockets, andĀ datagram sockets. Stream sockets treat communications as a continuous stream of characters, while datagram sockets have to read entire messages at once. Each uses its own communications protocol. Stream sockets use TCP (Transmission Control Protocol), which is a reliable, stream oriented protocol, and datagram sockets use UDP (User Datagram Protocol), which is unreliable and message oriented. TCP socket runs on top of IP (Internet Protocol). TCP is a connection-oriented communication protocol. What is…
Read MoreTag: uPyCraftIDE
Socket Programming in ESP8266 using MicroPython
Keywords: Socket, Socket programming, TCP/UDP Dictionary meaning of a Socket – an electrical device receiving a plug or light bulb to make a connection. In computer terminology, when a computer program needs to connect to Internet, it uses a software component called a socket. The socket opens the network connection for the program, allowing data to be read and written over the network. Please note that these sockets are software networking sockets, unlike hardware sockets these sockets will not give any shock ā š. When two computers or processes…
Read MoreInterrupts in ESP8266 using MicroPython
Keywords: Interrupts, GPIO, ESP8266, MicroPython, uPyCraft Prerequisites Complete set up of uPyCraftIDE Hardware – ESP8266 Dictionary meaning of Interrupt is to break some continuity. If we relate this to micro controller terminology this means when an interrupt happens, the processor stops the execution of the main program to execute a task or process or thread, and then gets back to the main program. Hardware interrupt A hardware interrupt is an electronic alerting signal sent to the micro controller from an external device, like a button or an external peripheral. For…
Read More