Skip to content

Commit 2bc7376

Browse files
Merge f385e72 into 0bb57ce
2 parents 0bb57ce + f385e72 commit 2bc7376

File tree

1 file changed

+4
-2
lines changed
  • content/arduino-cloud/03.cloud-interface/02.variables

1 file changed

+4
-2
lines changed

content/arduino-cloud/03.cloud-interface/02.variables/variables.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ To read the location values, we can use the following method `Location coordinat
265265

266266
| Property | Type | Read value | Set value |
267267
| --------- | ------- | ----------------- | --------------------------- |
268-
| Latitude | `float` | `coordinates.lat` | This variable is ready only |
269-
| Longitude | `float` | `coordinates.lon` | This variable is ready only |
268+
| Latitude | `float` | `coordinates.lat` | `latitude = latitudeValue;` |
269+
| Longitude | `float` | `coordinates.lon` | `longitude = longitudeValue;` |
270+
271+
To set the coordinates for the CloudLocation, we pass the location variables to the CloudLocation variable `x = Location(latitude, longitude);`.
270272

271273
***The format of the `lat` and `lon` is in Decimal Degrees (DD), for example `41.40338`, `2.17403`.***
272274

0 commit comments

Comments
 (0)