Go to advanced search

by miha1
Sat Jun 25, 2016 3:35 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Well you will be pleased to know I have installed a new router, so Maybe I won't crash your software so much. ;) :) I got another crash yesterday, when replacing the router, So I am guessing rebooting your modem/router with an open connection would be a good test. ;) With 0.2.0.6? it should not hav...
by miha1
Fri Jun 24, 2016 12:53 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, I am happy to get bug reports, it leads to more reliable code, so don't worry about it. :) As far as i can tell, the error you got is framework error ConnectionResetByPeer, caused by dropped connection. I changed the code, so it should hopefully resolve the issue. Connection drops are a bit r...
by miha1
Sat Jun 18, 2016 10:31 am
Forum: Windows 10 for IoT
Topic: How to disable the ftpd deamon on WIndows IoT
Replies: 2
Views: 1126

Re: How to disable the ftpd deamon on WIndows IoT

Hello, As whitebarin said, you disable the ftp server in the task scheduler. But i'd recommend against using default ftp server at all, since is allows anoynmous read/write operations. You can limit the damage by changing the folder, but if you're connected to internet you are still open to all sort...
by miha1
Sat Jun 18, 2016 10:23 am
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, Thank you for the error report. Crash was caused by framework closing connection during input stream read operation, caused by client disconnect. (both errors you reported are related) I fixed the issue and uploaded version 2.0.4 to the github. Isue here is, integrity of data we recived up to...
by miha1
Tue Jun 07, 2016 9:49 am
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

First off, let me say thanks for sharing this great project. It has made it very easy for me to monitor and control my Pi from the network. I have had a couple of instances where it has crashed though. The first time, I think was when my internet connection dropped, and I stupidly didn't make a not...
by miha1
Fri May 13, 2016 7:42 am
Forum: Windows 10 for IoT
Topic: Issues with I2C devices
Replies: 10
Views: 3196

Re: Issues with I2C devices

Hello, If you used code from the example, did you wire things correctly? The error you are getting means the sensor is not responding to commands sent to the i2c bus. According to the MPL3115A2 datasheet it's only address is 0x60, so the address in Microsoft example is ok. When you initialize the i2...
by miha1
Wed Apr 27, 2016 5:59 pm
Forum: Windows 10 for IoT
Topic: How can you make a better web UI?
Replies: 3
Views: 1003

Re: How can you make a better web UI?

Hello, Dashboard runs in it's own server, it's not ment to be reused. For your app, you can take a look at my HTTP server library that provides templating, http functionality (you just need few lines of code), timer events (for example reading sensors, ...) It comes with code samples for most of it'...
by miha1
Wed Mar 30, 2016 10:36 am
Forum: Windows 10 for IoT
Topic: Windows IoT security
Replies: 9
Views: 2889

Re: Windows IoT security

Hi, once again. Is there any chance to deploy from others applications then Visual Studio 2015 ?? I'm blocked SSH, FTH. Hello, You can deploy over web management app or over REST api exosed by web management app. You can see REST documentation by typing http://your-pi:8080/RESTDOCUMENTATION.HTM You...
by miha1
Wed Mar 16, 2016 9:12 am
Forum: Windows 10 for IoT
Topic: Windows IoT security
Replies: 9
Views: 2889

Re: Windows IoT security

This code don't work. Maybe I should kill process FTP when I run raspberry pi ? password when opening FTP ?? It should work, what is error message you get? Messages you get when you type those two commands in should look something like this: [pi2]: PS C:\Data\Users\Administrator\Documents> schtasks...
by miha1
Tue Mar 15, 2016 1:27 pm
Forum: Windows 10 for IoT
Topic: Windows IoT security
Replies: 9
Views: 2889

Re: Windows IoT security

How disable the uploading from visual studio 2015 to Raspberry PI 2 for other people besides me? It's limited to local subnet anyway. Do you have static ip or dynamic ip on your computer? Not shure if you can limit it to specific username, but you can limit to IP if you want. Warning, with this com...
by miha1
Mon Mar 14, 2016 5:15 pm
Forum: Windows 10 for IoT
Topic: Windows IoT security
Replies: 9
Views: 2889

Windows IoT security

Hello, I could not find any easy guides or info about securing Windows IoT devices, so I did some checking. As it turned out, you should never directly connect to internet fresh install of Windows IoT. (tested both on 10.0.10556 and on 10.0.14279) There are 4 important services running on it out of ...
by miha1
Fri Mar 11, 2016 6:09 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, It is implemented via optional arguments. Definition of the Start method is public void Start(string serviceName = "8000") If called without argument it will use default port 8000, but you can override that by supplying argument with port number. Just make shure it is not allready in use. So ...
by miha1
Thu Mar 10, 2016 10:51 am
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

There was update to the library today, new templating engine was added, based on the Universal apps port of the DotLiquid http://dotliquidmarkup.org/ templating engine. Default http listener was removed and replaced by HttpRootManager, that provides functionnality to: Customize error and server mess...
by miha1
Sun Mar 06, 2016 1:55 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, Thanks for your replay and I do appreciate the fact that you have been so helpful. However, I am still confused about some things: 1/ You described a process to create a Background Task (which I created). You also mention that I take the reference of HttpServer and all it's dependencies in B...
by miha1
Thu Mar 03, 2016 5:05 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, It seems I forgot to put code into example that allows the library to read embedded content from your app. I'll fix my headless app examle in this thread. You need to add to your code _ws.EmbeddedContent.RegisterAssembly(this.GetType()); _ws.EmbeddedContent.RefreshFileList(); before _ws.start...
by miha1
Thu Mar 03, 2016 3:40 pm
Forum: Windows 10 for IoT
Topic: Use Windows IoT projects standalone
Replies: 4
Views: 1195

Re: Use Windows IoT projects standalone

Yes, you can. Please take a look at https://www.hackster.io/AnuragVasanwala ... app-887ed0.


------
Miha
by miha1
Thu Mar 03, 2016 1:24 pm
Forum: Windows 10 for IoT
Topic: App2App web
Replies: 1
Views: 555

Re: App2App web

Hello, Asuming Windows IoT and webserver are different machines, you could serve the data as JSON from Windows IoT and then web server can request it, whenever it needs it? Or do you wish to serve the data from Windows IoT device itself? Please take a look at my HttpServer library, i think it will d...
by miha1
Thu Mar 03, 2016 1:01 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, Yes, you can. All HTTP requests or Timer events will be served in seperate Tasks or Threads and will not interfere with GUI in any way. Headed apps can get a bit too long to post full code here, but here are stepps to use this class in it: Add reference to HttpServer.dll to references for you...
by miha1
Thu Mar 03, 2016 8:40 am
Forum: Windows 10 for IoT
Topic: Use Windows IoT projects standalone
Replies: 4
Views: 1195

Re: Use Windows IoT projects standalone

Hello, I'm not quite shure if i understood you correctly, but you want to run your project automatically when you switch on your Rasberry PI, without uploading/running it from studio first? If this is what you want, then yes, you can. You can run it as headless (background) or headed (gui) applicati...
by miha1
Tue Mar 01, 2016 11:57 am
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Hello, I have redesigned demo project on github( https://github.com/strehar/HttpServer ) and split it into several classes, I hope it will be easier to understand how it works. If you allready have background app, you need to create instance of the HttpServer class in your app, then register method ...
by miha1
Wed Feb 24, 2016 9:38 am
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Re: Simple embedded HTTP server library

Thank you for reply. This library uses events and listeners, since each request is processed in separate Task. If you enable debug, you'll see Task and Thread ID in the debug messages for requests. From what I can see HttpListener runs in same thread as your program and blocks it while waiting for d...
by miha1
Mon Feb 22, 2016 1:15 pm
Forum: Windows 10 for IoT
Topic: Simple embedded HTTP server library
Replies: 34
Views: 12721

Simple embedded HTTP server library

Hello, I have written simple embedded http library for Windows IoT. Currently it includes GET requests, subset of POST requests, cookies, sessions, timers, very basic (but extendable) template and json support and support for reading embedded resources. It allso supports basic user authentication. U...

Go to advanced search