)) e_particle_concentration = Event( "PARTICLE_CONCENTRATION", "Aktuelle Partikelkonzentration", "Aktuelle Konzentration der Feinstaubpartikel in PPM", DataType.INT32, 1, False, ) e_particle_concentration.addMetaData( CustomMetaData( "Particle Concentration", "Particle Concentration", TypeDescription( TypeDescriptor.CDD, "0112/2///61987#ABT514#001", "https://cdd.iec.ch/cdd/iec61987/iec61987.nsf/ListsOfUnitsAllVersions/0112-2---61987%23ABT514", ), "/PARTICLE_CONCENTRATION", )) e_particle_concentration.addMetaData( TypeDescription( TypeDescriptor.CDD, "0112/2///61987#ABT514#001", "https://cdd.iec.ch/cdd/iec61987/iec61987.nsf/ListsOfUnitsAllVersions/0112-2---61987%23ABT514", "/PARTICLE_CONCENTRATION", )) myMsbClient.addEvent(e_particle_concentration) e_temperature = Event(
CustomMetaData( "Temperatursensor", "Temperatursensor", TypeDescription( TypeDescriptor.CDD, "0112/2///61987#ABT514#001", "https://cdd.iec.ch/cdd/iec61987/iec61987.nsf/ListsOfUnitsAllVersions/0112-2---61987%23ABT514", ), )) event1.addMetaData( CustomMetaData( "Temperatur", "Umgebungstemperatur", TypeDescription( TypeDescriptor.CDD, "0112/2///61987#ABT514#001", "https://cdd.iec.ch/cdd/iec61987/iec61987.nsf/ListsOfUnitsAllVersions/0112-2---61987%23ABT514", ), "/EVENT1", )) event1.addMetaData( TypeDescription( "0112/2///61987#ABT514#001", "https://cdd.iec.ch/cdd/iec61987/iec61987.nsf/ListsOfUnitsAllVersions/0112-2---61987%23ABT514", TypeDescriptor.CDD, "/EVENT1", )) # print(myMsbClient.objectToJson(event1))