Dr. Charif Mahmoudi
Published © MIT

Siemens IoT: Data Flow from IoT2040 to Mindsphere

Siemens is proposing an interesting industrial IoT ecosystem. This hands-on project introduces one aspect of Siemens' IoT solution.

BeginnerProtip8 hours2,799
Siemens IoT: Data Flow from IoT2040 to Mindsphere

Things used in this project

Hardware components

Siemens SIMATIC IOT2040
×1
Photo resistor
Photo resistor
×1
LED (generic)
LED (generic)
×2

Software apps and online services

Siemens MindSphere

Story

Read more

Schematics

Shematic

interactions diagram

Code

Code

C/C++
if(MCL_OK == code)
{
 // Generate GUID for data point 1.
 mcl_random_generate_guid(&data_point_id_1);  // Add data point to data source.
 char *data_point_1_name = "light";
 char *data_point_1_type = "INT";
 char *data_point_1_unit = "light";
 char *data_point_1_description = "Lum Description";
 printf("Adding data point 1 to data source : ");
 code = mcl_data_source_configuration_add_data_point(data_source, data_point_id_1, data_point_1_name, data_point_1_description, data_point_1_type, data_point_1_unit, NULL);
 printf("%s.\n", mcl_log_util_convert_error_code_to_string(code));
}

Credits

Dr. Charif Mahmoudi

Dr. Charif Mahmoudi

13 projects • 127 followers
PhD, Actually PostDoc. My areas of research are on distributed systems, cloud-computing, mobile computing, and IoT.

Comments