it works like a charm
- Netduino Forums
- → Viewing Profile: Posts: JBkey
Community Stats
- Group Members
- Active Posts 14
- Profile Views 8878
- Member Title Member
- Age 35 years old
- Birthday January 12, 1989
-
Gender
Male
-
Location
Aveiro, Portugal
User Tools
Friends
JBkey hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: /Reset
17 April 2015 - 01:44 PM
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
- Netduino Forums
- → Viewing Profile: Posts: JBkey
- Privacy Policy