Skip to content

Commit 9fceb57

Browse files
authored
Update README.md
1 parent 4a36700 commit 9fceb57

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ git clone https://github.com/anujdutt9/AWS_IoT_Python.git
3838
or download it as a ".zip" file.
3939

4040
## Running the Code:
41-
There are two example code in the repository:
42-
1. **Publisher and Subscriber Code**
43-
2. **Code for Raspberry Pi**
41+
The example code in the repository is:
42+
**Publisher and Subscriber Code **
4443

4544
a) The **Publisher and Subscriber** folder contains **AWS_IoT_pub.py** file that **publishes(sends)** the data to the AWS IoT service and **AWS_IoT_sub.py** that **subscribes** to the service and shows(get) the data from the AWS IoT on the second Terminal. Currently, **AWS_IoT_sub.py** subscribes to any topic and will show all of the received msgs but we can customize it to get a perticular message.
46-
47-
b) The second file consists of the code that reads the state of the pins of **Raspberry Pi3** (change Pin Numbers for other Raspberry Pi Boards) and sends this to the AWS IoT updating the state as its changed.
48-
For this, we have connected some LED's to the pins of the Raspberry Pi that represent the state of the pins.
45+
The publisher code reads the state of the pins of **Raspberry Pi3** (change Pin Numbers for other Raspberry Pi Boards) and sends this to the AWS IoT updating the state as its changed. For this, we have connected some LED's to the pins of the Raspberry Pi that represent the state of the pins.
4946
If the LED's glow, it's state is '1' else '0' (You can make changes in the code as you want).
5047

48+
The subscriber code fetches the state of the LED's from AWS IoT and prints it on the second terminal.
49+
50+
5151
## To Test the sample Python Programs:
5252
i) In one terminal, run the **AWS_IoT_pub.py** code using
5353
```

0 commit comments

Comments
 (0)