|
5 | 5 | * See examples/App/AppInitialization for more authentication examples. |
6 | 6 | * |
7 | 7 | * The OAuth2.0 authentication or access token authorization is required for Cloud Storage operations. |
8 | | - * |
| 8 | + * |
9 | 9 | * For Google JSON API reference documentation, please visit |
10 | 10 | * https://cloud.google.com/storage/docs/json_api/v1/objects/insert |
11 | 11 | * https://cloud.google.com/storage/docs/resumable-uploads |
@@ -113,14 +113,14 @@ void loop() |
113 | 113 | cstorage.upload(aClient, GoogleCloudStorage::Parent(STORAGE_BUCKET_ID, "media.mp4"), getFile(media_file), options, processData, "⬆️ uploadTask"); |
114 | 114 |
|
115 | 115 | // Async call with AsyncResult for returning result. |
116 | | - cstorage.upload(aClient, GoogleCloudStorage::Parent(STORAGE_BUCKET_ID, "media.mp4"), getFile(media_file), options, cloudStorageResult); |
| 116 | + // cstorage.upload(aClient, GoogleCloudStorage::Parent(STORAGE_BUCKET_ID, "media.mp4"), getFile(media_file), options, cloudStorageResult); |
117 | 117 |
|
118 | 118 | // Sync call which waits until the operation complete. |
119 | | - bool status = cstorage.upload(aClient, GoogleCloudStorage::Parent(STORAGE_BUCKET_ID, "media.mp4"), getFile(media_file), options); |
120 | | - if (status) |
121 | | - Serial.println("🔼 Upload task(await), complete!✅️"); |
122 | | - else |
123 | | - Firebase.printf("Error, msg: %s, code: %d\n", aClient.lastError().message().c_str(), aClient.lastError().code()); |
| 119 | + // bool status = cstorage.upload(aClient, GoogleCloudStorage::Parent(STORAGE_BUCKET_ID, "media.mp4"), getFile(media_file), options); |
| 120 | + // if (status) |
| 121 | + // Serial.println("🔼 Upload task(await), complete!✅️"); |
| 122 | + // else |
| 123 | + // Firebase.printf("Error, msg: %s, code: %d\n", aClient.lastError().message().c_str(), aClient.lastError().code()); |
124 | 124 | #endif |
125 | 125 | } |
126 | 126 |
|
|
0 commit comments