I have a buffer of chars defined as `char *buffer`. When I send my XBEE packet data, there is a fixed size requirement (84 bytes). My problem is I don't know how to convert the buffer into 84 byte chunks as I iterate. Here is what I get:

```
warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     packet = (buffer + i);
            ^

```

And my code:

```
int sendSerialBuffer(char *buffer, int length)
{
  int i = 0;
  int result = 0;
  char (* packet)[84];

  // Iterate through all the bytes in the buffer
  for (i = 0; i < length; i = i + 84)
  {
    packet = (buffer + i);
    result = sendPacket(packet)
  }
  return 0;
}

```

**Edit**:
I have also tried declaring packet like `char packet[84];` and get:

```
error: assignment to expression with array type
     packet = (buffer + i);
            ^

```

Also, sendPacket is defined as:`sendPacket(char packet[84]);`