Re: SI message port: WIKI error?
Posted: Mon Apr 19, 2021 9:53 am
Hi Tony, according to wiki, it can be used with named hardware (as far as I can see)
Would also love to see full two way comms working code (with multiple options for payload and number of elements in such etc) -
Although the MOST SIMPLISTIC code - as way to test on way - arduino to AM - (that works) that I posted above Is ok in AM4.x (But not in 3.x !) - I 'think' it would work ok in am 3.x WITH named hardware.. baffled. - I will test later with named in 3.x.
It would be REALLY good to have a whole section on Message Port as I think there is so much to learn. Personally, I though I was reasonably proficient in Arduino programming but found that I have a very (VERY) limited understanding of Arduino when using a C++ 'struct' and how to extract and use the elements of the 'struct'.
Maybe this is a great time to get to grips with this ?.
A said, I thought I was ok with Arduino until I came across the 'struct' as in message port - and also the way to extract and use the elements of such. It leaves me cold really.
Best regards,
Perhaps you guys and @Corjan can help here as It is seemingly not just 'beginners' who are seemingly confused by this. More working examples would be excellent. And a good discussion would be welcome. The thing I personally have difficulty with is the 'struct' and specifically the AM 'struct' and decoding and breaking down the elements. This is more a C++ programmers area of expertise than the cut down version of the 'real' C++ that is used in Arduino (as far as knowledge is concerned - in my case!)
Joe
Would also love to see full two way comms working code (with multiple options for payload and number of elements in such etc) -
Although the MOST SIMPLISTIC code - as way to test on way - arduino to AM - (that works) that I posted above Is ok in AM4.x (But not in 3.x !) - I 'think' it would work ok in am 3.x WITH named hardware.. baffled. - I will test later with named in 3.x.
It would be REALLY good to have a whole section on Message Port as I think there is so much to learn. Personally, I though I was reasonably proficient in Arduino programming but found that I have a very (VERY) limited understanding of Arduino when using a C++ 'struct' and how to extract and use the elements of the 'struct'.
Maybe this is a great time to get to grips with this ?.
A said, I thought I was ok with Arduino until I came across the 'struct' as in message port - and also the way to extract and use the elements of such. It leaves me cold really.
Best regards,
Perhaps you guys and @Corjan can help here as It is seemingly not just 'beginners' who are seemingly confused by this. More working examples would be excellent. And a good discussion would be welcome. The thing I personally have difficulty with is the 'struct' and specifically the AM 'struct' and decoding and breaking down the elements. This is more a C++ programmers area of expertise than the cut down version of the 'real' C++ that is used in Arduino (as far as knowledge is concerned - in my case!)
Joe