Skip navigation links

Package com.bosch.iot.dm.mme

Provides Mass Management Engine APIs for managing devices in a mass and automated way.

See: Description

Package com.bosch.iot.dm.mme Description

Provides Mass Management Engine APIs for managing devices in a mass and automated way.

The Mass Management Engine (MME) is a key service feature in the Bosch IoT Suite services defining:

Mass Management Engine can be considered as separate microservice in the Bosch IoT Suite having its own access point. Standalone applications can use dedicated MME Client libraries which open gRPC connection to the MME Service end-point and delegate needed requests to the server part. MME Client library is rich client application, which means - part of the logic is delegated to the server, part of the processing is done on the client side internally.

Needed class path libraries can be found at the public maven repo: https://maven.bosch-si.com/.
All needed dependencies are:

     <dependency>
       <groupId>com.bosch.iot.dm.libs</groupId>
       <artifactId>dm.grpc.sa.client</artifactId>
       <version> <!-- use latest available here --> </version>
     </dependency>
    <dependency>
       <groupId>com.bosch.iot.dm.mme.libs</groupId>
       <artifactId>dm.mme.client</artifactId>
       <version> <!-- use latest available here --> </version>
     </dependency> * 

The root interface of the API is the MassManagementEngine, instance of which could be obtains as follows:

 import com.bosch.iot.dm.grpc.sa.GRPCServiceFactory;
 import com.bosch.iot.dm.mme.MassManagementEngine;
 import com.bosch.iot.dm.mme.be.remote.MMERemote;
 import com.bosch.iot.dm.mme.sa.MMERemoteFactory;

   public static void main(String[] args) {
     GRPCServiceFactory grpcServiceFactory =  GRPCServiceFactory.newBuilder()
         .ssl(true)
         .host("grpc.mass-management.eu-1.bosch-iot-suite.com")
         .port(443)
         .credential(new Token(
             accessToken, // use your obtained access and refresh tokens here
             refreshToken
         ))
         .vertx(vertx)
         .build();

     MMERemote mmeRemote = grpcServiceFactory.service(MMERemote.class);
     MassManagementEngine mme = MMERemoteFactory.createServiceInstance(mmeRemote);
   }
 
Skip navigation links

Copyright © 2022 Bosch.IO GmbH. All rights reserved.