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
var mes = new TObs() | |
{ | |
messageid = Guid.NewGuid().ToString(), | |
source = this.SourceName, | |
status = "OK", | |
}; | |
var options = MessagePack.MessagePackSerializerOptions.Standard.WithResolver(MessagePack.Resolvers.StandardResolverAllowPrivate.Instance); | |
var jsonString = MessagePack.MessagePackSerializer.ConvertToJson(MessagePack.MessagePackSerializer.Serialize<TObs>(mes, options)); | |
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
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity | |
{ | |
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
global::Xamarin.Forms.Forms.Init(this, bundle); | |
LoadApplication(new App()); | |
// スクリーンオフやロックスクリーン回避 | |
Window.AddFlags(Android.Views.WindowManagerFlags.KeepScreenOn | |
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
/// <summary> | |
/// OAuth認証を実行する | |
/// </summary> | |
/// <returns></returns> | |
private async Task<string> GetAzureDataMarketToken() | |
{ | |
var properties = new Dictionary<string, string> | |
{ | |
{ "grant_type", "client_credentials" }, | |
{ "client_id", _clientId}, |
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
NetworkInformation.NetworkStatusChanged += async (object sender) => | |
{ | |
this.Context.Post(async (o) => | |
{ | |
this.IsWCFEnable = await CheckWCFEnable(); | |
}, | |
null); | |
}; |
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
NetworkChange.NetworkAddressChanged += (object sender, EventArgs e) => | |
{ | |
this.Context.Post(async (o) => | |
{ | |
this.IsEnable = await CheckEnable(); | |
}, | |
null); | |
}; |
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
#include <SoftwareSerial.h> | |
SoftwareSerial ESP8266_Serial(2, 3); | |
Servo CameraServo; | |
Servo WaterServo; | |
long LastTime = 0; | |
boolean WROOM_boot = false;//WROOMが起動したかどうかの判定 | |
boolean WiFi_setup = false;//WIFIセットアップが済んだかどうかの判定 |
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
using System; | |
using System.IO.Ports; | |
using Microsoft.SPOT.Hardware; | |
namespace Gr.NETMF.Hardware.Peach | |
{ | |
internal class GR_PEACHHardwareProvider : HardwareProvider | |
{ | |
static GR_PEACHHardwareProvider() | |
{ |
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
using Leap; | |
using System; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using System.Windows; | |
namespace HandsOn.Models | |
{ | |
public class TItem | |
{ |
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
using System; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using Windows.UI.Xaml.Media; | |
using Windows.UI.Xaml.Media.Imaging; | |
using WindowsPreview.Kinect; | |
namespace HandsOn.Models | |
{ | |
public class KinectModel : INotifyPropertyChanged |