* Plugin creation method, used to register on the plugin manager. * * @param[in] name Plugin name (must exist over lifetime) * @param[in] uid Unique id * * @return If successful, it will return the pointer to the plugin instance, otherwise nullptr. */
| 103 | * @return If successful, it will return the pointer to the plugin instance, otherwise nullptr. |
| 104 | */ |
| 105 | static IPluginMaintenance* create(const char* name, uint16_t uid) |
| 106 | { |
| 107 | return new (std::nothrow) SensorPlugin(name, uid); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Get font type. |