Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos SDFileSystem EthernetInterface DHT11
Revision 3:b2eae813c2e1, committed 2018-12-03
- Comitter:
- gjanusz
- Date:
- Mon Dec 03 19:06:30 2018 +0000
- Parent:
- 2:44f331aea307
- Child:
- 4:99347f78dc6c
- Commit message:
- DHT11;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Nov 24 22:20:03 2018 +0000
+++ b/main.cpp Mon Dec 03 19:06:30 2018 +0000
@@ -36,7 +36,7 @@
void initializeEthernet(void)
{
EthernetInterface eth;
- const char *ip = "192.168.1.2";
+ const char *ip = "192.168.1.3";
const char *mask = "255.255.255.0";
const char *gateway = "192.168.1.1";
if(!eth.init(ip,mask,gateway))
@@ -66,6 +66,7 @@
while(!file.eof())
{
getline(file,file_content[cnt]);
+ pc.printf("cnt: %i \n \r", cnt);
cnt++;
}
file.close();
@@ -86,8 +87,11 @@
int main()
{
+
initializeSerialPC();
- readHTMLCode();
- initializeEthernet();
+ //DHT11_read();
+ readHTMLCode();
+ initializeEthernet();
+
while(1);
}