ConnectivityFoundry / AwaLWM2M

Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.
BSD 3-Clause "New" or "Revised" License
102 stars 66 forks source link

Updated to make an example application with an openwrt device #304

Closed yi-liang closed 7 years ago

GonZo commented 7 years ago

None of the commits are sign-off @yi-liang please sign them. Also can you improve the description on the PR. @DuncanFrazer

meowsqueak commented 7 years ago

Updating for Python 3 is a great idea in general, however I don't think it should break Python 2, which this change will do. It might be better to consider a way to support both versions, if the roadmap doesn't specifically exclude Python 2.

meowsqueak commented 7 years ago

Also, the Python API is used by the tools test suite, so the choice of etree (from lxml or from xml) should probably be dynamic - i.e. try importing the former, fall back on the latter. An "xml abstraction layer" is useful here.