netduino

How to convert this hex string into a long?

不打扰是莪最后的温柔 提交于 2020-04-12 09:12:30
问题 I have: "0xE94C827CEB" in hex but as a string. Which is: 1002011000043 (dd mm yyyy HH mm ss) Unfortunately I don't know how to do the conversion if I only have it in string format, and I don't have a Convert.ToLong("0xE94C827CEB", 16) function because I'm using the .NET Micro Framework (also, don't have NumberStyles namespace available.) Is there a function out there that will convert this for me? Thanks 回答1: I don't know of any function to do it, but I think you can do it quite simply by

Send Message using a WebRequest and Twilio

旧城冷巷雨未停 提交于 2019-12-25 02:52:31
问题 I'm need to send a message using Twilio services and the NetDuino. I know there is an API that allows to send messages but it uses Rest-Sharp behind the scene which is not compatible with the micro-framework. I have try to do something like the below but I got a 401 error (not authorized). I got this code form here (which is exactly what I need to do) var MessageApiString = "https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/Messages.json"; var request = WebRequest.Create

Send Message using a WebRequest and Twilio

断了今生、忘了曾经 提交于 2019-12-25 02:51:21
问题 I'm need to send a message using Twilio services and the NetDuino. I know there is an API that allows to send messages but it uses Rest-Sharp behind the scene which is not compatible with the micro-framework. I have try to do something like the below but I got a 401 error (not authorized). I got this code form here (which is exactly what I need to do) var MessageApiString = "https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/Messages.json"; var request = WebRequest.Create

Json Library for .Net Microframework

北城余情 提交于 2019-12-21 12:17:25
问题 I'm running a light webserver using .Net Microframework and I was wondering what libraries would work well for for mainly JSON serialization, but possibly deserialization as well. Problem I've found with a lot of JSON libraries is they use fancy .Net features not available in MF, and are more complicated then what I need. I could easily write a simple library to accomplish my tasks but I was wondering if anything else was available. Thanks 回答1: There is a lightweight JSON parser in the

Escaping a double quotes in string in c#

不打扰是莪最后的温柔 提交于 2019-12-20 04:12:17
问题 I know this has been covered lots of times but I still have a problem with all of the solutions. I need to build a string to send to a JSON parser which needs quotes in it. I've tried these forms: string t1 = "[{\"TS\"}]"; string t2 = "[{" + "\"" + "TS" + "\"" + "}]"; string t3 = @"[{""TS""}]"; Debug.Print(t1); Debug.Print(t1); Debug.Print(t1); The debug statement shows it correctly [{"TS"}] but when I look at it in the debugger and most importantly when I send the string to my server side

Netduino no “Console.WriteLine”, Console does not exist in current context

两盒软妹~` 提交于 2019-12-12 09:35:51
问题 I cannot seem to get my very simple netduino program to write to the debug console; VS throws an error The name 'Console' does not exist in the current context Any ideas what might cause it to not exist? using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; namespace LumenReader { public class Program { public static

Connect WP8 (VM) with node.js server using TCP

余生长醉 提交于 2019-12-12 05:05:29
问题 I'm working on a school project. The goal is to link a Windows Phone 8 (WP8) with a server (node.js using sails.js framework based on express.js) by TCP socket. I have found a great tutorial for the C# part (WP8), I'm working with a Windows 8 Virtual Machine but it's not an issue. (Just slow an borring -_-) Based on the tutorial, I "realized" the WP part. I realized also the node.js server, using socket.io. Here the WP8 tutorial: http://msdn.microsoft.com/en-us/library/windowsphone/develop

how to send a signal to run a machine using netduino?

落爺英雄遲暮 提交于 2019-12-12 00:23:04
问题 first, i am a beginner in Netduino and micro-framework , so this is my situation : i have an application (winforms app) in a Win Pad this application it for sleeping detection, and i have a Netduino cart, what i want it's send a signal(start/stop) from my Netduino to the car window, that mean if the signal is sent the window is coming down and if it's sent for the second time the window is coming up. i am already see an example of LED : public static void Main() { var led = new OutputPort

Netduino no “Console.WriteLine”, Console does not exist in current context

雨燕双飞 提交于 2019-12-05 01:17:27
I cannot seem to get my very simple netduino program to write to the debug console; VS throws an error The name 'Console' does not exist in the current context Any ideas what might cause it to not exist? using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.NetduinoPlus; namespace LumenReader { public class Program { public static void Main() { AnalogInput photoResistor = new AnalogInput(Pins.GPIO_PIN_A0); int photoVolt; while

Json Library for .Net Microframework

拟墨画扇 提交于 2019-12-04 05:07:14
I'm running a light webserver using .Net Microframework and I was wondering what libraries would work well for for mainly JSON serialization, but possibly deserialization as well. Problem I've found with a lot of JSON libraries is they use fancy .Net features not available in MF, and are more complicated then what I need. I could easily write a simple library to accomplish my tasks but I was wondering if anything else was available. Thanks There is a lightweight JSON parser in the NetduinoHelpers library that is specifically built to minimize footprint: http://netduinohelpers.codeplex.com/