fix TNEF-6681
authorjomui <jongmun.woo@samsung.com>
Tue, 12 Jan 2016 01:16:07 +0000 (10:16 +0900)
committerjomui <jongmun.woo@samsung.com>
Tue, 12 Jan 2016 01:16:33 +0000 (10:16 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: Ie26baf30f14fadb18fce6c3e8a7e5dcea53960aa

org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm

index 2bb99be..e0399e1 100644 (file)
@@ -90,21 +90,22 @@ geofence_manager_add_place(manager, &quot;place_name&quot;, &amp;place_id);
 </table>
 </li>
 <li>Create the geofences:
+<ol type="a"><li>Geopoint geofence
 <pre class="prettyprint">
-// Geopoint geofence
 double latitude = 12.756738;
 double longitude = 77.386474;
 int radius = 100;
 char* address = &quot;India&quot;; 
 geofence_h fence_h;
 geofence_create_geopoint(place_id, latitude, longitude, radius, address, &amp;fence_h);
-
-// Wi-Fi/BT geofence
+</pre></li>
+<li>Wi-Fi/Bluetooth geofence
+<pre class="prettyprint">
 char* bssid = &quot;82:45:67:7E:4A:3B&quot;;
 char* ssid = &quot;Cafeteria&quot;;
 geofence_h fence_h;
 geofence_create_bluetooth(place_id, bssid, ssid, &amp;fence_h);
-</pre> 
+</pre></li></ol>
 <p>Add the geofence to the manager:</p>
 <pre class="prettyprint">
 int geofence_id = -1;
@@ -142,7 +143,7 @@ geofence_manager_set_geofence_event_cb(manager, geofence_event, NULL);
 <li><p>Get the success or failure state of the event in the callback:</p>
 <pre class="prettyprint">
 geofence_manage_e user_action;
-geofence_error_e user_error;
+geofence_manager_error_e user_error;
 void 
 geofence_event(int place_id, int geofence_id, geofence_manager_error_e error, 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geofence_manage_e manage, void *user_data)
@@ -249,13 +250,20 @@ geofence_get_latitude(fence_h, &amp;latitude);
 geofence_get_longitude(fence_h, &amp;longitude);
 geofence_get_radius(fence_h, &amp;radius);
 geofence_get_address(fence_h, &amp;address);
+
+//after use
+free(address);
 </pre></li>            
 <li>Retrieve the Wi-Fi or Bluetooth geofence information:
 <pre class="prettyprint">
 char *bssid;
 char *ssid;
 geofence_get_bssid(fence_h, &amp;bssid);
-geofence_get_sssid(fence_h, &amp;ssid);
+geofence_get_ssid(fence_h, &amp;ssid);
+
+//after use
+free(bssid);
+free(ssid);
 </pre></li></ul>