title: IOT hub not recieving or sending messages
body: <p>Iam trying to make a simple app for my raspberry pi that will send a message to the IOThub and then try to receive a response however nothing is happening.</p>
  
  <p>I copied the connectionstring from the device controller. Ofcource I hidden it for this question.</p>
  
  <p>I see it printing out that the message was succesfully sended to the iothub but when I check the iothub I see 0 received messages.</p>
  
  <p>Iam using the free tier of the iothub is this a limitation?</p>
  
  <pre><code>    public sealed partial class MainPage : Page
  {
      private const string DeviceConnectionString = "Hidden";
  
      private readonly DeviceClient _deviceClient;
  
      public MainPage()
      {
          this.InitializeComponent();
          _deviceClient = DeviceClient.CreateFromConnectionString(DeviceConnectionString, TransportType.Amqp); //Already tried using different transport types but no succes.
      }
  
      public async Task SendEvent()
      {
          Debug.WriteLine("\t{0}&gt; Sending message", DateTime.Now.ToLocalTime());
          var commandMessage = new Message(Encoding.ASCII.GetBytes("Cloud to device message."));
          await _deviceClient.SendEventAsync(commandMessage);
          Debug.WriteLine("Succesfully sended message to IotHub");
      }
  
      public async Task ReceiveCommands()
      {
          Debug.WriteLine("\nDevice waiting for commands from IoTHub...\n");
  
          while (true)
          {
              var receivedMessage = await _deviceClient.ReceiveAsync();
  
              if (receivedMessage != null)
              {
                  var messageData = Encoding.ASCII.GetString(receivedMessage.GetBytes());
                  Debug.WriteLine("\t{0}&gt; Received message: {1}", DateTime.Now.ToLocalTime(), messageData);
  
                  var propCount = 0;
                  foreach (var prop in receivedMessage.Properties)
                  {
                      Debug.WriteLine("\t\tProperty[{0}&gt; Key={1} : Value={2}", propCount++, prop.Key, prop.Value);
                  }
  
                  await _deviceClient.CompleteAsync(receivedMessage);
                  Debug.WriteLine("Finishing recieving message");
              }
              await Task.Delay(TimeSpan.FromSeconds(1));
          }
      }
  
      private async void Button_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
      {
          Debug.WriteLine("Sending event");
          await SendEvent();
          await ReceiveCommands();
          Debug.WriteLine("Received commands");
      }
  }
  </code></pre>