The CodeLess™ library implements the Renesas CodeLess™ and DSPS protocols and provides helper classes to support the development of your own CodeLess™ and DSPS applications.
Import the codelesslib library module into your Android Studio project.
You can use the SmartConsole Android application source code as reference.
For more information on how to use the library, refer to the documentation of the following classes.
- Use
CodelessScannerto scan for Bluetooth devices. - Use
CodelessManagerto connect and interact with a CodeLess™ or DSPS device. CodelessCommandscontains helper methods for sending various AT commands to the peer device.CodelessEventcontains event classes for all possible events that can be generated by the library.CodelessProfilecontains definitions and helper classes and methods.- See
CodelessCommandon how supported AT commands are implemented and how to add new commands. - Modify
CodelessLibConfigto configure various aspects of the library behavior. - Modify
CodelessLibLogto configure the log output produced by the library.
See also: CodeLess User Manual
Note: There is also a CodeLess™ library for iOS development, which is written in Objective-C. While class names may be slightly different and the API uses the Objective-C syntax, the iOS library behavior is similar to the Android one, except for some platform specific cases.
- Select: File → New → Import Module
- Select the
codelesslibmodule source code directory. - Add module in
settings.gradleinclude ':codelesslib' - Add dependencies in app
build.gradleimplementation project(":codelesslib") implementation 'org.greenrobot:eventbus:3.3.1'