add support for old (WiFly) and new (Wifly_Light) device identifier
adapt android application to new API interface