Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
3,361 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||
<section name="IoTRest.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> | ||
</sectionGroup> | ||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | ||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> | ||
</configSections> | ||
<startup> | ||
|
||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup> | ||
<applicationSettings> | ||
<IoTRest.Properties.Settings> | ||
<setting name="Server" serializeAs="String"> | ||
<value>http://thethingsnetwork.org</value> | ||
</setting> | ||
<setting name="GatewayUrl" serializeAs="String"> | ||
<value>/api/v0/gateways/{eui}</value> | ||
</setting> | ||
<setting name="Limit" serializeAs="String"> | ||
<value>10</value> | ||
</setting> | ||
<setting name="UseDB" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
<setting name="ServerFormat" serializeAs="String"> | ||
<value>json</value> | ||
</setting> | ||
<setting name="MQTTServer" serializeAs="String"> | ||
<value>croft.thethings.girovito.nl</value> | ||
</setting> | ||
<setting name="MQTTPort" serializeAs="String"> | ||
<value>1883</value> | ||
</setting> | ||
<setting name="GatewayEUI" serializeAs="Xml"> | ||
<value> | ||
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<string>1DEE1325F39AD9CA</string> | ||
<string>1DEE1325F39AD9C9</string> | ||
</ArrayOfString> | ||
</value> | ||
</setting> | ||
<setting name="MQTTTopic" serializeAs="Xml"> | ||
<value> | ||
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<string>gateways/1DEE1325F39AD9CA/status</string> | ||
<string>gateways/1DEE1325F39AD9C9/status</string> | ||
<string>nodes/02D1E701/packets</string> | ||
</ArrayOfString> | ||
</value> | ||
</setting> | ||
<setting name="NodeEUI" serializeAs="Xml"> | ||
<value> | ||
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<string>02D1E701</string> | ||
</ArrayOfString> | ||
</value> | ||
</setting> | ||
<setting name="NodeUrl" serializeAs="String"> | ||
<value>/api/v0/nodes/{eui}</value> | ||
</setting> | ||
<setting name="LwgPort" serializeAs="String"> | ||
<value>1700</value> | ||
</setting> | ||
</IoTRest.Properties.Settings> | ||
</applicationSettings> | ||
<entityFramework> | ||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> | ||
<parameters> | ||
<parameter value="mssqllocaldb"/> | ||
</parameters> | ||
</defaultConnectionFactory> | ||
<providers> | ||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> | ||
</providers> | ||
</entityFramework> | ||
<connectionStrings> | ||
<add name="LgwDbContext" connectionString="metadata=res://*/LgwData.csdl|res://*/LgwData.ssdl|res://*/LgwData.msl;provider=System.Data.SqlClient;provider connection string="data source=(local);initial catalog=IoT;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient"/> | ||
</connectionStrings> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated from a template. | ||
// | ||
// Manual changes to this file may cause unexpected behavior in your application. | ||
// Manual changes to this file will be overwritten if the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace IoT | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
public partial class Gateway | ||
{ | ||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] | ||
public Gateway() | ||
{ | ||
this.Status = new HashSet<Status>(); | ||
} | ||
|
||
public int Id { get; set; } | ||
public string eui { get; set; } | ||
public Nullable<double> latitude { get; set; } | ||
public Nullable<double> longitude { get; set; } | ||
public Nullable<System.DateTime> time { get; set; } | ||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] | ||
public virtual ICollection<Status> Status { get; set; } | ||
} | ||
} |
Oops, something went wrong.