*
* @param confbase The directory in which MeshLink will store its configuration files.
* @param name The name which this instance of the application will use in the mesh.
+ * @param appname The application name which will be used in the mesh.
+ * @param dclass The device class which will be used in the mesh.
*
* @return This function will return a pointer to a meshlink::mesh if MeshLink has succesfully set up its configuration files, NULL otherwise.
*/
template<class MESH>
- static MESH* open(const char *confbase, const char *name) {
- void* mp = (void *)meshlink_open_with_size(confbase, name, sizeof(MESH));
+ static MESH* open(const char *confbase, const char *name, const char* appname, dclass_t dclass) {
+ void* mp = (void *)meshlink_open_with_size(confbase, name, appname, dclass, sizeof(MESH));
return new (mp) MESH;
}