2018
April Tuesday 24

Bookmark and Share

Related Articles...

MILWAUKEE WI Arduino Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Arduino Make Space Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Raspberry Pi Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Raspberry Pi Make Space Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Internet of Things (IoT) Meet Up Make Space

WANTED: CORE TEAM MEMBER TO HELP START NON-PROFIT GROUP.

WANTED: Angle Investor Start-Up Funding

Large Industrial Zoned Make Space Acquired!

Full Advanced Fabrication Facility, machine Shop, Welding, Electronics Lab Equipment Acquired!

Email :

COASMailBox @ gmail.com

MILWAUKEE WI Machine Repair, & Installation  - Tier 1 Business Support

Machine Technician Mechanic 20+ Years  Personal Experienced In Industrial Factory Machine Servicing, Rebuilding, Installation And Repair - Plus A 35+ Years Experienced Computer Engineer Service Technician Team Ready For Your Outsourced Market Advantage Needs!

Hartung Industrial - Member - CGI Science & Technology Group

Email :

COASMailBox @ gmail.com

2018 FEB REVIEW

Arduino Open Source Community member - Tier 1 Full Stack Developer

Arduino IoT XML

Arduino Serving XML

2018 FEB | by Gene Casanova

Senior Systems Engineer; R&D Computer Science & Technology


Arduino IoT - Internet of Things

An Arduino setup as an Internet-of-Things (IOT) device, can provide a web service, using Internet protocols and guidelines to provide seamless integration with web apps. Two Internet data-distribution methods for providing universal web services, are 'REST' and 'XML'. REST provides data, in respounce to commands received from the Internet. And XML, provides self-described data.


Arduino XML

Start with an example Arduino system. This system will be an Arduino connected to the Internet using an Ethernet interface. The loaded firmware will return the value read at the Arduino Analog I/O pins 'A0' and 'A1'.

Connect a POT, first lead to 5v, center lead to Analog I/O pin 'A0', and the thrid lead to ground (GND).

The POT will simulate an Arduino sensor in this circuit. Data from the sensor, will be sent by the Arduino, as a well formed XML document to a requesting client.

An Experimental Sketch


/* * Arduino Serving XML
 * By Gene Casanova
 * Copyright 2018
*/
#include <SPI.h>   // SPI Interface Library.
					  // Use for communciations with sensors and Ethernet Interface.
#include <Ethernet.h> // For Ethernet interface. // Enter a unique MAC address for the Ethernet interface: // This must be a unique address on the LAN being connected to: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Enter a LAN IP-address: IPAddress ip(192,168,1,50); // Initialize Ethernet server(port#): // (port 80 is the default for HTTP): EthernetServer server(80); void setup() { // Begin an Ethernet server: Ethernet.begin(mac, ip); server.begin(); } void loop() { // Listen for incoming HTTP Requests: EthernetClient client = server.available(); If (client) { // A HTTP request ends with a blank line. boolean currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read(); // If a newline character and lne is blank, // then the HTTP request has ended: if (c == '\n' && currentLineIsBlank) { // Send Reply: client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/xml"); client.print("<CasanovaArduinoLab>"); client.print("<analogChannel0>"); client.print("<sensor>"); client.print("<analog>"); client.print(analogRead(0)); client.print("</analog>"); client.print("</sensor>"); client.print("</analogChannel0>"); } if (c == '\n') { // A NewLine. currentLineIsBlank = true; } else if (c != '\r') { // A Character: currentLineIsBlank = false; } } } delay(1); // Pause. // Close HTTP Connection: client.stop(); } }

Arduino Open Source Community member - Tier 1 Full Stack Developer

Arduino Awesome

Arduino is an awesome opportunity, for anyone to start learning about microcontroller computers and computer-programming; gaining valued enlightenment and skills to build your own things or to create next generation products, or increasing your level of deeper enlightement and your skilled labor value to employers.

Engage Today

Clubs, Groups, Schools, Organizations, Corporations... I Make Myself Available For Professional Speaking And Instructing Engagements.


Arduino Open Source Community member - Tier 1 Full Stack Developer

'IoT & Embedded MAKER SPACE - MKE'

CONACT to learn about a new group in METRO Area of WI & IL - Milwaukee, Racine, Kenosha, South Eastern WI And Northern IL, space and/or spaces - Forming Now!

We Have Industrial Zoned Making Space With Outfitted Machine Shop And Lab Space Available!  Multiple Dedicated Online Locations Available In Milwaukee 3rd Ward.

I am building a network of creative Makers/Doers!... Come Learn More, Join, Engage, Enjoy, Create A Solid Future Of Fun And Reward... Come Help..... Core Team Members Wanted, Or Simply be A Hangout Member Learning, Socializing/Networking... Start-Up Incubator Space, Students Tutoring Space, Retired... Hobbyists, Educators, Scientists, Researchers, Developers...

Mega Industrial Machines Building!!!!  AI Development.... Super Computing.... @ Tier 1 Level.  Locations looking to establish a network space, include Chicago IL, Melbourne Vic Australia.


Use The Technology Wisely & Keep It Simple

- Cheers!

Gene Casanova


Need More?   Need Help? ........Software, Network, System & Data Center Builder & Developer | Development Services Available - Freelance Small Jobs; To Outsourced Long Term Service Provider Contract Labor Available.

CGI Computer Wares | EST 1979

Send E-MailCONTACT: [click]@CGIComputerWares.com