{"action":"created","issue":{"url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library/issues/75","repository_url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library","labels_url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library/issues/75/comments","events_url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library/issues/75/events","html_url":"https://github.com/pozyxLabs/Pozyx-Arduino-library/issues/75","id":329435196,"node_id":"MDU6SXNzdWUzMjk0MzUxOTY=","number":75,"title":"Library seems to be incompatible with PJRC Teensy boards","user":{"login":"nesdnuma","id":6513218,"node_id":"MDQ6VXNlcjY1MTMyMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6513218?v=4","gravatar_id":"","url":"https://api.github.com/users/nesdnuma","html_url":"https://github.com/nesdnuma","followers_url":"https://api.github.com/users/nesdnuma/followers","following_url":"https://api.github.com/users/nesdnuma/following{/other_user}","gists_url":"https://api.github.com/users/nesdnuma/gists{/gist_id}","starred_url":"https://api.github.com/users/nesdnuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesdnuma/subscriptions","organizations_url":"https://api.github.com/users/nesdnuma/orgs","repos_url":"https://api.github.com/users/nesdnuma/repos","events_url":"https://api.github.com/users/nesdnuma/events{/privacy}","received_events_url":"https://api.github.com/users/nesdnuma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-06-05T12:32:41Z","updated_at":"2018-07-16T08:59:45Z","closed_at":"2018-07-05T08:57:39Z","author_association":"NONE","body":"When trying to compile the examples for a Teensy 3.1 board, I get a lot of error messages (see below).\r\n\r\nIt's too bad as the Teensy can communicate much faster with a computer than a regular Arduino Uno.\r\n\r\n_In file included from unit_tests_core.ino:4:0:\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:449:90: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getRead(uint8_t reg_address, uint8_t *pData, int size, uint16_t remote_id=NULL);\r\n\r\n                                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:463:91: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setWrite(uint8_t reg_address, uint8_t *pData, int size, uint16_t remote_id=NULL);\r\n\r\n                                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:479:141: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int useFunction(uint8_t reg_address, uint8_t *params=NULL, int param_size=0, uint8_t *pData=NULL, int size=0, uint16_t remote_id=NULL);\r\n\r\n                                                                                                                                             ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:557:76: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getLastNetworkId(uint16_t *network_id, uint16_t remote_id = NULL);\r\n\r\n                                                                            ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:570:77: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getLastDataLength(uint8_t *data_length, uint16_t remote_id = NULL);\r\n\r\n                                                                             ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:595:71: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setNetworkId(uint16_t network_id, uint16_t remote_id = NULL);\r\n\r\n                                                                       ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:608:82: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getUWBSettings(UWB_settings_t *UWB_settings, uint16_t remote_id = NULL);\r\n\r\n                                                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:623:82: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setUWBSettings(UWB_settings_t *UWB_settings, uint16_t remote_id = NULL);\r\n\r\n                                                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:638:90: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setUWBSettingsExceptGain(UWB_settings_t *UWB_settings, uint16_t remote_id=NULL);\r\n\r\n                                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:651:68: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setUWBChannel(int channel_num, uint16_t remote_id = NULL);\r\n\r\n                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:666:69: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getUWBChannel(int* channel_num, uint16_t remote_id = NULL);\r\n\r\n                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:685:65: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setTxPower(float txgain_dB, uint16_t remote_id = NULL);\r\n\r\n                                                                 ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:700:66: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getTxPower(float* txgain_dB, uint16_t remote_id = NULL);\r\n\r\n                                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:720:64: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getWhoAmI(uint8_t *whoami, uint16_t remote_id = NULL);\r\n\r\n                                                                ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:733:75: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getFirmwareVersion(uint8_t *firmware, uint16_t remote_id = NULL);\r\n\r\n                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:746:75: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getHardwareVersion(uint8_t *hardware, uint16_t remote_id = NULL);\r\n\r\n                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:759:68: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getSelftest(uint8_t *selftest, uint16_t remote_id = NULL);\r\n\r\n                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:772:71: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getErrorCode(uint8_t *error_code, uint16_t remote_id = NULL);\r\n\r\n                                                                       ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:787:77: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getInterruptStatus(uint8_t *interrupts, uint16_t remote_id = NULL);\r\n\r\n                                                                             ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:800:87: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getCalibrationStatus(uint8_t *calibration_status, uint16_t remote_id = NULL);\r\n\r\n                                                                                       ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:816:75: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getGPIO(int gpio_num, uint8_t *value, uint16_t remote_id = NULL);\r\n\r\n                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:830:74: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setGPIO(int gpio_num, uint8_t value, uint16_t remote_id = NULL);\r\n\r\n                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:842:50: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static void resetSystem(uint16_t remote_id = NULL);\r\n\r\n                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:861:72: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setLed(int led_num, boolean state, uint16_t remote_id = NULL);\r\n\r\n                                                                        ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:875:69: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getInterruptMask(uint8_t *mask, uint16_t remote_id = NULL);\r\n\r\n                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:890:68: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setInterruptMask(uint8_t mask, uint16_t remote_id = NULL);\r\n\r\n                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:906:84: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getConfigModeGPIO(int gpio_num, uint8_t *mode, uint16_t remote_id = NULL);\r\n\r\n                                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:921:84: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getConfigPullGPIO(int gpio_num, uint8_t *pull, uint16_t remote_id = NULL);\r\n\r\n                                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:938:85: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setConfigGPIO(int gpio_num, int mode, int pull, uint16_t remote_id = NULL);\r\n\r\n                                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:955:72: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setLedConfig(uint8_t config = 0x0, uint16_t remote_id = NULL);\r\n\r\n                                                                        ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:968:102: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int configInterruptPin(int pin, int mode, int bActiveHigh, int bLatch, uint16_t remote_id=NULL);\r\n\r\n                                                                                                      ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:989:116: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int saveConfiguration(int type, uint8_t registers[] = NULL, int num_registers = 0, uint16_t remote_id = NULL);\r\n\r\n                                                                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1004:102: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int saveRegisters(uint8_t registers[] = NULL, int num_registers = 0, uint16_t remote_id = NULL);\r\n\r\n                                                                                                      ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1017:49: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int saveNetwork(uint16_t remote_id = NULL);\r\n\r\n                                                 ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1030:51: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int saveAnchorIds(uint16_t remote_id = NULL);\r\n\r\n                                                   ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1043:53: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int saveUWBSettings(uint16_t remote_id = NULL);\r\n\r\n                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1061:56: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int clearConfiguration(uint16_t remote_id = NULL);\r\n\r\n                                                        ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1074:74: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static bool isRegisterSaved(uint8_t regAddress, uint16_t remote_id = NULL);\r\n\r\n                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1083:58: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getNumRegistersSaved(uint16_t remote_id = NULL);\r\n\r\n                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1107:80: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getCoordinates(coordinates_t *coordinates, uint16_t remote_id = NULL);\r\n\r\n                                                                                ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1122:79: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setCoordinates(coordinates_t coordinates, uint16_t remote_id = NULL);\r\n\r\n                                                                               ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1136:78: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPositionError(pos_error_t *pos_error, uint16_t remote_id = NULL);\r\n\r\n                                                                              ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1154:97: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setPositioningAnchorIds(uint16_t anchors[], int anchor_num, uint16_t remote_id = NULL);\r\n\r\n                                                                                                 ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1171:97: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPositioningAnchorIds(uint16_t anchors[], int anchor_num, uint16_t remote_id = NULL);\r\n\r\n                                                                                                 ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1186:69: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getUpdateInterval(uint16_t *ms, uint16_t remote_id = NULL);\r\n\r\n                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1202:68: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setUpdateInterval(uint16_t ms, uint16_t remote_id = NULL);\r\n\r\n                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1218:75: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getRangingProtocol(uint8_t *protocol, uint16_t remote_id = NULL);\r\n\r\n                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1234:74: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setRangingProtocol(uint8_t protocol, uint16_t remote_id = NULL);\r\n\r\n                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1251:89: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPositionFilterStrength(uint8_t *filter_strength, uint16_t remote_id = NULL);\r\n\r\n                                                                                         ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1267:81: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPositionFilterType(uint8_t *filter_type, uint16_t remote_id = NULL);\r\n\r\n                                                                                 ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1283:101: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setPositionFilter(uint8_t filter_type, uint8_t filter_strength, uint16_t remote_id = NULL);\r\n\r\n                                                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1299:78: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPositionAlgorithm(uint8_t *algorithm, uint16_t remote_id = NULL);\r\n\r\n                                                                              ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1314:78: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPositionDimension(uint8_t *dimension, uint16_t remote_id = NULL);\r\n\r\n                                                                              ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1331:119: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setPositionAlgorithm(int algorithm = POZYX_POS_ALG_UWB_ONLY, int dimension = 0x0, uint16_t remote_id = NULL);\r\n\r\n                                                                                                                       ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1345:75: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getAnchorSelectionMode(uint8_t *mode, uint16_t remote_id = NULL);\r\n\r\n                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1360:77: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getNumberOfAnchors(uint8_t *nr_anchors, uint16_t remote_id = NULL);\r\n\r\n                                                                             ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1380:85: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setSelectionOfAnchors(int mode, int nr_anchors, uint16_t remote_id = NULL);\r\n\r\n                                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1397:69: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getOperationMode(uint8_t *mode, uint16_t remote_id = NULL);\r\n\r\n                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1414:68: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setOperationMode(uint8_t mode, uint16_t remote_id = NULL);\r\n\r\n                                                                    ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1426:55: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static String getSystemError(uint16_t remote_id = NULL);\r\n\r\n                                                       ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1447:73: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getSensorMode(uint8_t *sensor_mode, uint16_t remote_id = NULL);\r\n\r\n                                                                         ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1459:72: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int setSensorMode(uint8_t sensor_mode, uint16_t remote_id = NULL);\r\n\r\n                                                                        ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1473:80: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getRawSensorData(sensor_raw_t *sensor_raw, uint16_t remote_id = NULL);\r\n\r\n                                                                                ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1487:82: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getAllSensorData(sensor_data_t *sensor_data, uint16_t remote_id = NULL);\r\n\r\n                                                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1500:73: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getPressure_Pa(float32_t *pressure, uint16_t remote_id = NULL);\r\n\r\n                                                                         ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1514:85: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getMaxLinearAcceleration(uint16_t *max_lin_acc, uint16_t remote_id = NULL);\r\n\r\n                                                                                     ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1528:86: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getAcceleration_mg(acceleration_t *acceleration, uint16_t remote_id = NULL);\r\n\r\n                                                                                      ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1542:74: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getMagnetic_uT(magnetic_t *magnetic, uint16_t remote_id = NULL);\r\n\r\n                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1556:88: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getAngularVelocity_dps(angular_vel_t *angular_vel, uint16_t remote_id = NULL);\r\n\r\n                                                                                        ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1569:86: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getEulerAngles_deg(euler_angles_t *euler_angles, uint16_t remote_id = NULL);\r\n\r\n                                                                                      ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1583:77: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getQuaternion(quaternion_t *quaternion, uint16_t remote_id = NULL);\r\n\r\n                                                                             ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1599:106: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getLinearAcceleration_mg(linear_acceleration_t *linear_acceleration, uint16_t remote_id = NULL);\r\n\r\n                                                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1613:91: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getGravityVector_mg(gravity_vector_t *gravity_vector, uint16_t remote_id = NULL);\r\n\r\n                                                                                           ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1627:78: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getTemperature_c(float32_t *temperature, uint16_t remote_id = NULL);\r\n\r\n                                                                              ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1715:106: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getDeviceRangeInfo(uint16_t device_id, device_range_t *device_range, uint16_t remote_id = NULL);\r\n\r\n                                                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1735:82: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getDeviceListSize(uint8_t *device_list_size, uint16_t remote_id = NULL);\r\n\r\n                                                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1749:80: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getDeviceIds(uint16_t devices[], int size, uint16_t remote_id = NULL);\r\n\r\n                                                                                ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1762:80: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getAnchorIds(uint16_t anchors[], int size, uint16_t remote_id = NULL);\r\n\r\n                                                                                ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1775:74: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getTagIds(uint16_t tags[], int size, uint16_t remote_id = NULL);\r\n\r\n                                                                          ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1825:50: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int clearDevices(uint16_t remote_id = NULL);\r\n\r\n                                                  ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1838:88: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int addDevice(device_coordinates_t device_coordinates, uint16_t remote_id = NULL);\r\n\r\n                                                                                        ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\Pozyx/Pozyx.h:1851:106: warning: converting to non-pointer type 'uint16_t {aka short unsigned int}' from NULL [-Wconversion-null]\r\n\r\n     static int getDeviceCoordinates(uint16_t device_id, coordinates_t *coordinates, uint16_t remote_id = NULL);\r\n\r\n                                                                                                          ^\r\n\r\nIn file included from D:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnit.h:12:0,\r\n\r\n                 from unit_tests_core.ino:2:\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h: In instantiation of 'static bool Compare<A, B>::less(const A&, const B&) [with A = long unsigned int; B = int]':\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h:13:18:   required from 'static bool Compare<A, B>::equal(const A&, const B&) [with A = long unsigned int; B = int]'\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h:38:171:   required from 'bool compareEqual(const A&, const B&) [with A = long unsigned int; B = int]'\r\n\r\nunit_tests_core.ino:55:3:   required from here\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h:21:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n\r\n     return a<b;\r\n\r\n             ^\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h: In instantiation of 'static bool Compare<A, B>::less(const A&, const B&) [with A = int; B = long unsigned int]':\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h:13:45:   required from 'static bool Compare<A, B>::equal(const A&, const B&) [with A = long unsigned int; B = int]'\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h:38:171:   required from 'bool compareEqual(const A&, const B&) [with A = long unsigned int; B = int]'\r\n\r\nunit_tests_core.ino:55:3:   required from here\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src/ArduinoUnitUtility/Compare.h:21:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src\\ArduinoUnitUtility\\ArduinoUnitMockPrint.cpp: In member function 'virtual size_t MockPrint::write(const uint8_t*, size_t)':\r\n\r\nD:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src\\ArduinoUnitUtility\\ArduinoUnitMockPrint.cpp:136:95: error: no matching function for call to 'MockPrint::concat(const char*, size_t&)'\r\n\r\n size_t MockPrint::write(const uint8_t *buffer, size_t size) { concat((const char *)buffer,size); return size; }\r\n\r\n                                                                                               ^\r\n\r\nIn file included from D:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src\\ArduinoUnitUtility\\ArduinoUnitMockWString.h:4:0,\r\n\r\n                 from D:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src\\ArduinoUnitUtility\\ArduinoUnitMockPrint.h:11,\r\n\r\n                 from D:\\Programmation\\Arduino\\libraries\\ArduinoUnit\\src\\ArduinoUnitUtility\\ArduinoUnitMockPrint.cpp:5:\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:127:11: note: candidate: String& String::concat(const String&)\r\n\r\n  String & concat(const String &str)  {return append(str);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:127:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:128:11: note: candidate: String& String::concat(const char*)\r\n\r\n  String & concat(const char *cstr)  {return append(cstr);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:128:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:129:11: note: candidate: String& String::concat(const __FlashStringHelper*)\r\n\r\n  String & concat(const __FlashStringHelper *pgmstr) {return append(pgmstr);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:129:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:130:11: note: candidate: String& String::concat(char)\r\n\r\n  String & concat(char c)    {return append(c);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:130:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:131:11: note: candidate: String& String::concat(unsigned char)\r\n\r\n  String & concat(unsigned char c)  {return append((int)c);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:131:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:132:11: note: candidate: String& String::concat(int)\r\n\r\n  String & concat(int num)   {return append(num);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:132:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:133:11: note: candidate: String& String::concat(unsigned int)\r\n\r\n  String & concat(unsigned int num)  {return append(num);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:133:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:134:11: note: candidate: String& String::concat(long int)\r\n\r\n  String & concat(long num)   {return append(num);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:134:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:135:11: note: candidate: String& String::concat(long unsigned int)\r\n\r\n  String & concat(unsigned long num)  {return append(num);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:135:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:136:11: note: candidate: String& String::concat(float)\r\n\r\n  String & concat(float num)   {return append(num);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:136:11: note:   candidate expects 1 argument, 2 provided\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:137:11: note: candidate: String& String::concat(double)\r\n\r\n  String & concat(double num)   {return append(num);}\r\n\r\n           ^\r\n\r\nC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3/WString.h:137:11: note:   candidate expects 1 argument, 2 provided_\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library/issues/comments/405185552","html_url":"https://github.com/pozyxLabs/Pozyx-Arduino-library/issues/75#issuecomment-405185552","issue_url":"https://api.github.com/repos/pozyxLabs/Pozyx-Arduino-library/issues/75","id":405185552,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTE4NTU1Mg==","user":{"login":"nesdnuma","id":6513218,"node_id":"MDQ6VXNlcjY1MTMyMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6513218?v=4","gravatar_id":"","url":"https://api.github.com/users/nesdnuma","html_url":"https://github.com/nesdnuma","followers_url":"https://api.github.com/users/nesdnuma/followers","following_url":"https://api.github.com/users/nesdnuma/following{/other_user}","gists_url":"https://api.github.com/users/nesdnuma/gists{/gist_id}","starred_url":"https://api.github.com/users/nesdnuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesdnuma/subscriptions","organizations_url":"https://api.github.com/users/nesdnuma/orgs","repos_url":"https://api.github.com/users/nesdnuma/repos","events_url":"https://api.github.com/users/nesdnuma/events{/privacy}","received_events_url":"https://api.github.com/users/nesdnuma/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T08:59:45Z","updated_at":"2018-07-16T08:59:45Z","author_association":"NONE","body":" @GOBish:\r\n\r\nI think that Paul used a library version which is a bit old whereas I've used latest version.\r\n\r\nI am not sure about which files from the Pozyx lib have been modified. Actually I didn't think I would post them here because the first answer I got from Pozyx support about the Teensy was that it was not supported. I am glad to see it might have evolved.\r\n\r\nBasically you add this code in Pozyx_core.cpp:\r\n```\r\n#elif defined(__arm__) && defined(TEENSYDUINO)\r\n    // Teensy LC & 3.x\r\n    attachInterrupt(interrupt_pin+2, IRQ, RISING);\r\n```\r\njust before\r\n```\r\n#else\r\n    Serial.println(\"This is not a board supported by Pozyx, interrupts may not work\");\r\n    attachInterrupt(interrupt_pin, IRQ, RISING);\r\n#endif\r\n```\r\n\r\nThen you replace any occurence of \"NULL\" with a 0 (zero) in all the files (NULL is not supposed to be used anymore in Arduino IDE I think).\r\n\r\n@tonton81: the `delay(1000)` after serial port opening seem to improve chances of success but I do not have much time to run further tests today."}}
{"actor":{"display_login":"nesdnuma"}}