PelionIoT / pelion-ready-example

Pelion Device Ready example - deprecated
https://github.com/ARMmbed/pelion-ready-example
Apache License 2.0
2 stars 18 forks source link

Disable eventOS thread #16

Closed janjongboom closed 6 years ago

janjongboom commented 6 years ago

[Memory hackathon] Use main thread to dispatch eventOS events around. Still registers and can subscribe / publish events around on K64F.

Not sure why we don't do this normally, there's probably a reason. If we want this we can put it in Simple Cloud Client behind the MBED_CONF_NANOSTACK_HAL_EVENT_LOOP_DISPATCH_FROM_APPLICATION macro.

Saves 40 bytes flash, 6144 bytes of RAM. Verified that connect + update both still work on K64F.

@bulislaw @MarceloSalazar

MarceloSalazar commented 6 years ago

@janjongboom are you ok to close this one in favor of https://github.com/ARMmbed/simple-mbed-cloud-client-template-restricted/pull/20? (as contains an extra optimization?)