<commit_before># MicroTweet
MicroTweet is a Twitter API Library for the .NET Micro Framework.
It can be used to post and retreive tweets directly from a NETMF device via Twitter's API.

MicroTweet requires NETMF v4.3 and a board that supports SSL.

## Getting Started
A sample application is included that shows a few of the primary functions of MicroTweet (including sending a tweet and retrieving your home timeline).
You can base your application off the included sample, or start a new application that references the MicroTweet library.

### Using MicroTweet in your own application
To reference the MicroTweet library, you can either add the MicroTweet project to your VS solution or simply install the library via NuGet.

To install it from NuGet, run the following command in the Package Manager Console:
```
Install-Package MicroTweet
```
Instructions for using NuGet and the Package Manager Console can be found [here](http://docs.nuget.org/consume/package-manager-console).

Once you've referenced the MicroTweet assembly from your application, add a `using` directive for the MicroTweet namespace at the top of your program file (e.g., Program.cs):
```cs
using MicroTweet;
```

### Setting the current time
**Important:** Twitter API requests must contain a valid (current) timestamp.
For your convenience, an SNTP class is included with MicroTweet to retrieve the current time from an NTP server.

You can update the current time on your board with the following code:
```cs
Microsoft.SPOT.Hardware.Utility.SetLocalTime(Sntp.GetCurrentUtcTime());
```
<commit_msg>Add note about DHCP to readme file<commit_after># MicroTweet
MicroTweet is a Twitter API Library for the .NET Micro Framework.
It can be used to post and retreive tweets directly from a NETMF device via Twitter's API.

MicroTweet requires NETMF v4.3 and a board that supports SSL.

## Getting Started
A sample application is included that shows a few of the primary functions of MicroTweet (including sending a tweet and retrieving your home timeline).
You can base your application off the included sample, or start a new application that references the MicroTweet library.

### Using MicroTweet in your own application
To reference the MicroTweet library, you can either add the MicroTweet project to your VS solution or simply install the library via NuGet.

To install it from NuGet, run the following command in the Package Manager Console:
```
Install-Package MicroTweet
```
Instructions for using NuGet and the Package Manager Console can be found [here](http://docs.nuget.org/consume/package-manager-console).

Once you've referenced the MicroTweet assembly from your application, add a `using` directive for the MicroTweet namespace at the top of your program file (e.g., Program.cs):
```cs
using MicroTweet;
```

Also, if you use DHCP, you may want to wait for an IP address to be acquired before performing any network operations.
You can do this by checking the value of `IPAddress.GetDefaultLocalAddress()` at the beginning of your program:
```cs
while (IPAddress.GetDefaultLocalAddress() == IPAddress.Any)
    Thread.Sleep(50);
```

### Setting the current time
**Important:** Twitter API requests must contain a valid (current) timestamp.
For your convenience, an SNTP class is included with MicroTweet to retrieve the current time from an NTP server.

You can update the current time on your board with the following code:
```cs
Microsoft.SPOT.Hardware.Utility.SetLocalTime(Sntp.GetCurrentUtcTime());
```

{'fraction_non_alphanumeric': 0.06090935087217615, 'fraction_numerical': 0.0017157563625965113, 'mean_word_length': 4.969283276450512, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7070345', 'n_tokens_mistral': 913, 'n_tokens_neox': 872, 'n_words': 489}