-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should timer_linux.h be named timer_platform.h? #5
Comments
As a follow up, I noticed that timer_interface.h treats "struct timer" as an opaque pointer. Is it necessary to include that header from the timer_interface.h at all, isn't a better design to keep it internal only to the timer implementation? EDIT: I realised this would require InitTimer() to allocate the timer data structure internally, so I retract this second comment. Sorry for the noise! |
Hi @projectgus , Yes it should be Ideally we could have left it like
The linux file was left in as an example from our linux port. Thanks for porting the SDK to your RTOS platform. Would you be able to provide more information about your port (what specific RTOS, target hardware)? We are always seeking input such as this to help improve the SDK. Bhadri |
Thanks for the reply @bhadrip. Maybe I'm missing something, but why have people edit the platform-neutral file at all? Why not this? In
Then you have a If I add a FreeRTOS port for example, then I create And the compiler include paths are either That way
I'm a maintainer for esp-open-rtos, which is a community-developed FreeRTOS port for the esp8266 microcontroller. We have mbedTLS ported already, and there's a Paho MQTT client port out there, so it shouldn't be too hard to bring up the AWS IoT SDK as well. I'll let you know how we go. |
Thats a great suggestion! The MQTT client distributed with the SDK is a modified version of Eclipse Paho Embedded C. Also, this file is the way we have configured mbedTLS. Please keep us posted on how the port is coming up. Thanks |
Hello! Any news about porting to esp8266? Have really high hopes on it :) Thank you very much for your work! |
Adds CC32XX device support - http://www.ti.com/product/CC3200 Adds a top-level README_CC3200.md with setup instructions. Adds platform_tirtos directories to each of the three sample apps containing sources and build scripts for the CC3200 LaunchPad. Note the oddity of adding a timer_linux.h file for TI-RTOS platforms(!). It's a misnomer, but doing so enabled _not_ requiring a change to the common aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/timer_interface.h source file. Eventually, that common file may be changed to use a better, generic name like timer_platform.h, as discussed here: aws/aws-iot-device-sdk-embedded-C#5 Signed-off-by: Chris Ring <[email protected]>
Eagerly waiting for ESP8266. |
+1 for AWS IoT + NodeMCU (Lua) |
+1 for using on esp8266 |
Hi @projectgus, Rahul |
* Refactor code to break common callback type to API-specific callback types * Update parser to de-serialize rejected response data and forward to callback for handling * Add tests for rejected response parsing logic * Update OnboardDevice API MQTT topic strings
I'm starting a port of this SDK to a new RTOS-based platform, and I noticed that the platform-agnostic timer.h includes timer_linux.h:
https://github.com/aws/aws-iot-device-sdk-embedded-C/blob/master/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/timer_interface.h#L31
As per the comment, this timer_linux.h header contains platform-specific declarations for the Timer structure.
Would a better name for this platform-specific header be timer_platform.h?
The text was updated successfully, but these errors were encountered: