Hi Tomoaki,
those are the main principles.
Limited system APIs: memcpy, strcpy are ok. That's about it I
think.
Everything else which is platform dependent should be in replaceable
classes. They don't *have* to be template parameters although that
does have some advantages.
We should consider builds, documentation, tests and ports to
complete the work of course. I'm sure we can get help with those.
If you look at the embedded C++ client it has subdirectories for
different platforms.
We should track the work in an issue on Github
(https://github.com/eclipse/paho.mqtt.embedded-c/issues) - this
allows other people to more easily contribute. You could open one
and add your design proposal to start.
I look forward to working with you on this!
Ian
On 02/19/2016 01:47 AM, Tomoaki
Yamaguchi wrote:
Hi Ian
and then contribute it to Paho? => YES, my pleasure
- C++ Standard Template Library (STL) not used – too
heavyweight => no
problem but need to change my codes.
- system APIs for networking, timing and threading are
implemented as replaceable classes (template parameters
in MQTTClient) =>
those are
defined as classes but not template classes. (Process
framework classes in page 6 of my attached doc)
- limited or no other system APIs, for portability => no problem. Do you
have a list of available APIs ?
- no heap memory allocation - to make memory
use as predictable as possible => no problem but need
to change my codes.
And, just to be clear, a transparent gateway means that a
new MQTT connection is created for each incoming MQTT-SN
connection. Is that your understanding too?
=> My G/W creates new
connection when CONNECT message is sent from clients.
Are there any thing I should follow ? I'm expecting many
people will help us.
Tomoaki
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto
|