Recent blog entries

From the monthly archives: April 2015

We are pleased to present below all posts archived in 'April 2015'. If you still can't find what you are looking for, try using the search box.

Netduino boards : the new “third” generation now with integrated Wi-Fi

Now … I can write something !! Smile

 

About two weeks ago I received a great present from Secret Labs (thanks to Chris Walker) … the new Netduino 3 Wi-Fi board !

Read the rest of entry »

2015 Global Azure Bootcamp - Azure Enabled IoT Development

On April 25, 2015, the Global Azure Bootcamp will be take place at approximately 190 locations worldwide.

Read the rest of entry »

Quail : a new .Net Micro Framework board is in town !

There is a new .Net Micro Framework board in town !

 

In the past few months, MikroElektronika release the Quail Board as a solution for building hardware prototypes using all the best features of .Net Micro Framework and the related “click” boards for a lot of type of external devices, like sensors (humidity, temperature, …), wifi module, OLED and so on.

Read the rest of entry »

Full agenda : travelling for the Internet of Things !

It was and it will be a very busy time for me ... and if you want to hear me talk about the Internet of Things around Italy (and the "world"), you just need to read the agenda of upcoming events !

 

Tomorrow, on Saturday April 18th, there will be the third edition of the Microsoft Embedded Conference in Naples that has become the Internet of Things Conference organized as always by the DotNetCampania community thanks to the sponsorship of Microsoft Italy.

Read the rest of entry »

CEJSON – 5.5 The Parser source code in detail

The following is most of the code for the JSON Parser state machine function.

Read the rest of entry »

CEJSON – 4.4: IncrementState

Increments (the enum) the state.

// For many states when its parse requierment is satified: state <-- state++
void IncrementState()
{
	parseState = (Expecting)((int)parseState + 1);
}

CEJSON – 5.3: Expect

If in a state of “readiness” checks if the current character is the expected one. If so increment or change the state.

// For states where state increments by one if the expected character is the
// current one in the stream.
BOOL Expect(char c)
{
	char  ExpectArray[11] = "";  //X is don't care
	if (c == ExpectArray[parseState])
	{

		IncrementState();
		return true;
	}
    //A 'fix' to facilitate parsing of JSON strings that aren't arrays:
	else if (('{' == c) && (startOfArray == parseState))
	{
		//Permit parsing of records only
		parseState = startOfName;
	}
	else
	{
		//Expectation wasn't satified so error
		output.print(F("Expected: "));
		output.println(ExpectArray[parseState]);
		output.print(F("Got: "));
		output.println(c);
		parseState = error;
		output.print(F("Expect Next Err: "));
		output.println(parseState);

		ErrNo = 10;
		return false;
	}
	return true;
}

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.

Read the rest of entry »

Pages: Previous123NextReturn Top

John Koot's blog

Search blog

Archive

Recent Comments

  1. Re: SurfPad: Index

    this is a good post that you have written you can add more about the outlook or some other technology...

    -- Configure Outlook 2016

  2. Re: Azure Sphere - Hands on!!

    Cool

    -- David Jones

  3. Re: Windows 10 IoT Core: Shutdown and Reboot the Raspberry Pi

    Bruce, I noticed that you are sending a REST web request for controlling the pi. I looked online a for...

    -- Waleed Elmandouh

  4. Re: Strange HP Laptop Keyboard Fix–It worked for me.

    Eh its happened again! Yes [Fn] and [ctrl] keys are swapped. So time to shutdown and remove the battery...

    -- David Jones

  5. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    Thank you for the workaround. I just tried it on my Raspberry Pi 3 running Win 10 IoT. It solved the...

    -- Paul

  6. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    Thank you for the workaround. I just tried it on my Raspberry Pi 3 running Win 10 IoT. It solved the...

    -- Paul

  7. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    When the BLE dongle is inserted it shows up on the default startup app main page as two entries: USB...

    -- David Jones

  8. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    The above "comment" is the Device tree on Device Portal-Devices for the Bluetooth Driver/s with the ...

    -- David Jones

  9. Re: Win 10 IoT-Core - Raspberry Pi3 Bluetooth Driver Issue: Workaround

    >HTREE\ROOT\0 >ACPI ARM-based PC >Microsoft ACPI-Compiant System ...

    -- David Jones

  10. Re: Bluetooth Low Energy on Windows 10 Creators Edition and a RPi3 issue.

    FYI: On RPI2 ========== When my USB BLE Dongle is plugged in I get two entries on the main page for the...

    -- David Jones

Turkish porno izle video site in rokettubeporno izle