JBkey - Viewing Profile: Posts - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

JBkey

Member Since 05 Feb 2015
Offline Last Active Apr 28 2015 02:28 PM
-----

Posts I've Made

In Topic: /Reset

17 April 2015 - 01:44 PM

it works like a charm


In Topic: /Reset

18 March 2015 - 03:01 PM

Hi Chris, thank you for your response.

I'll try it ;)

 

 

 

And thank Mario Vernari too. Yesterday there was a reply from him but now it desappeared.


In Topic: 3D models for Netduino Plus 2

01 March 2015 - 02:06 PM

Hi Eriond.

I can't open your model. Can you make an IGES version?


In Topic: Finding bytes in byte array

17 February 2015 - 09:19 AM

Hi.

 

thank you for your answer.

 

 

You are right. I need to extract all the occurrences. About the end of block I know it's the 16th byte after the "0x55" occurrence.

 

 

I'm going to study your suggestion and I'll let you know what's my decision ;)

 

 

PS. : How was the carnival? I hear that Venezian carnival is awesome.


In Topic: Finding bytes in byte array

15 February 2015 - 09:15 AM

It's like a little venezia,  ;)



Before I saw your comment I reached the same solution. And it's working so far.


                int index = Array.IndexOf(readBuffer, "0x55");

                byte[] results = new byte[16];

                Array.Copy(readBuffer, index, results, 0, 16);                

But I forgot something...

In the source byte[] (readBuffer), I have more than one "0x55 block" and I need all of them (I didn't know this before, I thought it would be just one block per array).. and array.copy only returns the first one. Any ideas?

 

 

 

 

Jónatas Brás


home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.