Setting the led color based on the app state
[apps/native/gear-racing-car.git] / src / cloud / cloud_communication.c
index d42796c..482057f 100644 (file)
@@ -119,10 +119,14 @@ static void post_response_cb(request_result_e result, void *user_data)
     if (result == SUCCESS) {
         _I("POST SUCCESS");
         resource_bi_led_set(LED_COLOR_GREEN);
+        resource_rgb_gpio_set(0, 1, 0);
+        resource_rgb_l2c_set(0, 255, 0);
     }
     else {
         _I("POST FAILURE");
         resource_bi_led_set(LED_COLOR_RED);
+        resource_rgb_gpio_set(1, 0, 0);
+        resource_rgb_l2c_set(255, 0, 0);
     }
 }