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.Collections.Generic; | |
using System.IO.Ports; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ArduinoInterfacingDemo | |
{ | |
class Program |
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
<?php | |
if (!extension_loaded("sqlsrv")) | |
{ | |
die("SQLSRV hasn't been loaded."); | |
} | |
// Connection details | |
$server = "tcp:<FULL SERVER ADDRESS>, <PORT>"; | |
$user = "<DB USER>@<SERVER ADDRESS>"; | |
$pwd = "<PASS>"; | |
$db = "<DB NAME>"; |
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
// Shows the user a simple message | |
Toast.makeText(getApplicationContext(), "Enter text here", Toast.LENGTH_LONG).show(); |
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 dict = (JObject)JsonConvert.DeserializeObject(e.Result); | |
foreach (var obj in dict["category"]) | |
{ | |
string id = obj["itemInCategory"].ToString(); | |
} |