Skip to content

Commit 65eba09

Browse files
IoT part 9 and 10 - corrected code formatting and tinified pictures
1 parent 2363ab2 commit 65eba09

24 files changed

Lines changed: 92 additions & 46 deletions

File tree

-45.3 KB
Loading
-22.1 KB
Loading
-31.7 KB
Loading
-63 KB
Loading
-74.9 KB
Loading
-107 KB
Loading
-17 KB
Loading
-85.7 KB
Loading

tutorials/iot-part10-hcp-services-hanaxs/iot-part10-hcp-services-hanaxs.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Now that your IoT Services are collecting data and you were able to view it your
3131
![HANA instances](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/iot-part10-hcp-services-hanaxs/1.png)
3232

3333
![HANA instances](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/iot-part10-hcp-services-hanaxs/2.png)
34-
34+
3535
3. Under the first one, our `XXXXXXtrial.iotmms.web` you’ll notice we have an existing binding in place. We need to remove that one. Then we will need to add the new binding to our new HANA XS (shared) instance.
3636

3737
4. Once you have that complete you will need to start your “IOTMMS” Java Application and send some data through your device which will then generate the proper tables in your HANA XS (shared) instance ([see tutorial](http://go.sap.com/developer/tutorials/iot-part7-add-device.html)). So provided you received the “200” status in your messages then we should now have data in our tables and can begin working on our XS application.
@@ -54,15 +54,15 @@ Now that your IoT Services are collecting data and you were able to view it your
5454
]
5555
}
5656
```
57-
57+
5858
7. Now switch to the catalog view to determine the next values you will need.
5959

6060
![catalog](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/iot-part10-hcp-services-hanaxs/5.png)
61-
61+
6262
8. Now check under the `NEO_` schema, you will need to make a note of that specific schema name as you will need it in a moment. Under this schema you will find your tables. These are the tables created by the IoT Services for our devices.
6363

6464
![catalog tables](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/iot-part10-hcp-services-hanaxs/6.png)
65-
65+
6666
9. Your table table `T_IOT_1_XXXXXXXXXXXXX` will be the other item you need to make note of for use in a moment. Now back in our other window the “Editor” should still be open and running and there we need to make another new file in our sub package `iotmmsxs`. This file will be called `iotaccess.hdbrole`.
6767

6868
```
@@ -71,8 +71,8 @@ Now that your IoT Services are collecting data and you were able to view it your
7171
catalog schema "NEO_<schema_id>": SELECT;
7272
}
7373
```
74-
75-
This will give a specific user read access to our table. As soon as you save it and it’s successfully activated that is.
74+
75+
This will give a specific user read access to our table. As soon as you save it and it’s successfully activated that is.
7676

7777
10. Now you will need to modify your `.xsaccess` file.
7878

@@ -83,56 +83,56 @@ Now that your IoT Services are collecting data and you were able to view it your
8383
"authorization": ["<user_id>trial.codejam.iotmmsxs::Basic"]
8484
}
8585
```
86-
Save these changes. At this point go back over to the “Catalog” window and give your user access to the application.
86+
Save these changes. At this point go back over to the “Catalog” window and give your user access to the application.
8787
8888
11. Within the “Catalog” across the top menu there is a button for “SQL” go ahead and click it. This will open an SQL console.
8989
9090
```
9191
call "HCP"."HCP_GRANT_ROLE_TO_USER"('<user_id>trial.codejam.iotmmsxs::iotaccess', '<user_id>')
9292
```
93-
93+
9494
Here you will assign your user access to the role you just created.
9595
9696
12. Back in the “Editor” it’s time to select your sub package `iotmmsxs` and then add a new file. This will be `iotservice.xsodata`.
97-
97+
9898
```
9999
service {
100100
"NEO_<schema_id>"."T_IOT_<table_postfix>" key generate local "GEN_ID";
101101
```
102-
102+
103103
So this file we can open in our web browser right now and have full access to all of the built in odata functionality.
104-
104+
105105
This will point you to OData service.
106-
106+
107107
```
108108
https://<system_id>hanaxs.hanatrial.ondemand.com/<user_id>trial/codejam/iotmmsxs/iotservice.xsodata
109109
```
110-
110+
111111
The next link shows OData service metadata
112-
112+
113113
```
114114
https://<system_id>hanaxs.hanatrial.ondemand.com/<user_id>trial/codejam/iotmmsxs/iotservice.xsodata/$metadata
115115
```
116-
116+
117117
The next link shows entity content in XML format
118-
118+
119119
```
120120
https://<system_id>hanaxs.hanatrial.ondemand.com/<user_id>trial/codejam/iotmmsxs/iotservice.xsodata/T_IOT_<table_postfix>
121121
```
122-
122+
123123
The next link shows entity content in JSON format
124-
124+
125125
```
126126
https://<system_id>hanaxs.hanatrial.ondemand.com/<user_id>trial/codejam/iotmmsxs/iotservice.xsodata/T_IOT_<table_postfix>?$format=json
127127
```
128128
129-
13. You will use this when modifying the `index.html` file.
129+
13. You will use this when modifying the `index.html` file.
130130
131131
![default page](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/iot-part10-hcp-services-hanaxs/7.png)
132132
133133
14. You will replace the existing code with the following, which is quite a bit but should be easily readable and understandable as we are adding a table to a page. This is not the only way to do but that is a matter for you to explore and discover!
134134
135-
```
135+
```html
136136
<!DOCTYPE HTML>
137137
<html>
138138
<head>
@@ -166,10 +166,10 @@ Now that your IoT Services are collecting data and you were able to view it your
166166
<div id="sensor_table"/>
167167
</body>
168168
</html>
169-
```
169+
```
170170
171171
![new page](https://raw.githubusercontent.com/SAPDocuments/Tutorials/master/tutorials/iot-part10-hcp-services-hanaxs/8.png)
172172
173-
173+
174174
## Next Steps
175175
- Select a tutorial from the [Tutorial Navigator](http://go.sap.com/developer/tutorial-navigator.html) or the [Tutorial Catalog](http://go.sap.com/developer/tutorials.html)
-64.2 KB
Loading

0 commit comments

Comments
 (0)