Recent blog entries

David Jones's Articles

Twitter: @CEDriverWiz

CEJSON – 5.2: The JSON Parser Function

The Parser Function is a giant Switch-Case statement.

//The current state of the State Machine
Expecting parseState = startOfArray;

/*
Parses a JSon array of records of name value pairs
*/
BOOL ParseJsonString(char c)
{
	switch (parseState)
	{
	case startOfArray:
		result = Expect(c);
		if (result)
		{
			//Start of array so no records yet.
			RecordNo = 0;
			output.println(F("\r\n1: Starting parse of array."));
		}
   ...
   ...
   ...
    }

CEJSON5.1 – Parser State Machine States Enum

// Parser state machine states:
enum Expecting
{
	startOfArray,
	startOfRecord,
	startOfName,
	gettingName,
	nameValueSeparator,
	startOfValue,
	gettingValue,
	gettingEndOfValueORRecord,
	gotEndOfRecord,
	gettingRecordSeparator,
	done,
	error,

	gettingString,
	gettingBoolean,
	gettingInteger,
	gettingFloat,
	gettingNull
}

CEJSON – 5: IoT The JSON Parser

A detailed description of the CEJSON JSON Parser.

NXP and Freescale Merger

On March 2 the pending merger of NXP Semiconductors N.V. and Freescale Semiconductor, Ltd was announced.

CEJSON – 4: IoT Version 1 Azure Mobile Service Tables

Version 1 AzMS Tables use an auto-incremented integer field as the primary key which is more compact than the GUID string used in version 2 AzMS tables.. The Azure Portal generates Version 2 tables which can be inefficient for resource limited embedded devices. This blog covers how to generate version 1 AzMS tables.

CEJSON-3: IoT and Azure Mobile Service Scripts

When an HTML POST/GET/PATCH/DELETE message is posted to an Azure Mobile Service Table, the message can be intercepted and modified. Also the response can also be intercepted and modified. This blog outlines how to do this.

JSONParser Example: JSONParser DELETE 24

The Command

C:\GIT\CEJSON\JSONParser.Desktop\Debug>JSONParser DELETE 24

JSONParser Example: PATCH 39 Value 55

The Command

C:\JSONParser.Compact2013>JSONParser PATCH 39 Value 55

JSONParser Example: POST Temperature 78

The Command

C:\JSONParser.Compact2013>JSONParser POST Temperature 78


JSONParser Example: GET

The Command

C:\JSONParser.Compact2013>JSONParser GET


David Jone's blog



Search blog

Category

Archive

Turkish porno izle video site in rokettubeporno izle