Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c5e6bdd

Browse files
Merge pull request #2542 from arduino/benjamindannegard/cloud-location-varaibles-docs-fix
[PXCT-998] Cloud - Updated cloudlocation documentation
2 parents 858dbe6 + 0682664 commit c5e6bdd

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` | See information below |
269+
| Longitude | `float` | `coordinates.lon` | See information below |
270+
271+
The value of a `CloudLocation` variable is set using a `Location` object. The coordinate values are passed as arguments to the `Location` constructor: `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)

AltStyle によって変換されたページ (->オリジナル) /